summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-16 16:44:19 +0100
committerErik Johnston <erik@matrix.org>2016-08-16 16:44:19 +0100
commit64a2acb1610cab12a84da180a027f8ab3d33b26f (patch)
tree74cbe25d83c319d7760f4b407cb4f88b6e4131ea
parentMerge pull request #1015 from matrix-org/erikj/preview_url_fixes (diff)
downloadsynapse-64a2acb1610cab12a84da180a027f8ab3d33b26f.tar.xz
Don't update caches replication stream if tokens haven't advanced
-rw-r--r--synapse/replication/resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/resource.py b/synapse/replication/resource.py

index 84993b33b3..0996054f6b 100644 --- a/synapse/replication/resource.py +++ b/synapse/replication/resource.py
@@ -390,7 +390,7 @@ class ReplicationResource(Resource): caches = request_streams.get("caches") - if caches is not None: + if caches is not None and current_position != caches: updated_caches = yield self.store.get_all_updated_caches( caches, current_position, limit )