summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-10-20 18:10:12 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-10-20 18:10:12 +0100
commit7059e87227960108606caa9be3c44c1a1dfd235d (patch)
tree55eca58c72e3d6ce55827588f40a9a9968ed444a
parentMerge commit '17fa4c7ca' into anoa/dinsic_release_1_21_x (diff)
parentIn light of #8255, use BIGINTs for destination_rooms (#8256) (diff)
downloadsynapse-7059e87227960108606caa9be3c44c1a1dfd235d.tar.xz
Merge commit '7513006b0' into anoa/dinsic_release_1_21_x
* commit '7513006b0':
  In light of #8255, use BIGINTs for destination_rooms (#8256)
-rw-r--r--changelog.d/8256.misc1
-rw-r--r--synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/8256.misc b/changelog.d/8256.misc
new file mode 100644

index 0000000000..bf0ba76730 --- /dev/null +++ b/changelog.d/8256.misc
@@ -0,0 +1 @@ +Track the latest event for every destination and room for catch-up after federation outage. diff --git a/synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql b/synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql
index 7f173f10d4..ebfbed7925 100644 --- a/synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql +++ b/synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql
@@ -23,7 +23,7 @@ CREATE TABLE IF NOT EXISTS destination_rooms ( -- the ID of the room in question room_id TEXT NOT NULL REFERENCES rooms (room_id), -- the stream_ordering of the event - stream_ordering INTEGER NOT NULL, + stream_ordering BIGINT NOT NULL, PRIMARY KEY (destination, room_id) -- We don't declare a foreign key on stream_ordering here because that'd mean -- we'd need to either maintain an index (expensive) or do a table scan of