summary refs log tree commit diff
path: root/synapse/replication/tcp/client.py
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-01-10 12:43:28 +0000
committerDavid Robertson <davidr@element.io>2023-01-10 12:43:28 +0000
commit04aa6a970790543e773639c821d0628e5fadaf32 (patch)
tree48adfb5013d2a31253030a0f2508896e7c72b390 /synapse/replication/tcp/client.py
parentMerge branch 'rei/dresync_exp' into matrix-org-hotfixes (diff)
parentUpdate changelog 2 (diff)
downloadsynapse-04aa6a970790543e773639c821d0628e5fadaf32.tar.xz
Merge remote-tracking branch 'origin/release-v1.75' into matrix-org-hotfixes
Diffstat (limited to 'synapse/replication/tcp/client.py')
-rw-r--r--synapse/replication/tcp/client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/replication/tcp/client.py b/synapse/replication/tcp/client.py

index 658d89210d..b5e40da533 100644 --- a/synapse/replication/tcp/client.py +++ b/synapse/replication/tcp/client.py
@@ -152,6 +152,9 @@ class ReplicationDataHandler: rows: a list of Stream.ROW_TYPE objects as returned by Stream.parse_row. """ self.store.process_replication_rows(stream_name, instance_name, token, rows) + # NOTE: this must be called after process_replication_rows to ensure any + # cache invalidations are first handled before any stream ID advances. + self.store.process_replication_position(stream_name, instance_name, token) if self.send_handler: await self.send_handler.process_replication_rows(stream_name, token, rows)