diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-16 16:44:19 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-16 16:44:19 +0100 |
commit | 64a2acb1610cab12a84da180a027f8ab3d33b26f (patch) | |
tree | 74cbe25d83c319d7760f4b407cb4f88b6e4131ea /synapse/replication | |
parent | Merge pull request #1015 from matrix-org/erikj/preview_url_fixes (diff) | |
download | synapse-64a2acb1610cab12a84da180a027f8ab3d33b26f.tar.xz |
Don't update caches replication stream if tokens haven't advanced
Diffstat (limited to '')
-rw-r--r-- | synapse/replication/resource.py | 2 |
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 ) |