summary refs log tree commit diff
path: root/synapse/replication/resource.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-10-11 13:57:22 +0100
committerErik Johnston <erik@matrix.org>2016-10-11 13:57:22 +0100
commit668f91d70787dbc007b8221f0e6d7fda8affdacc (patch)
treebf7ad83251c779551558212bd707cbb770b1bae5 /synapse/replication/resource.py
parentReduce DB hits for replication (diff)
downloadsynapse-668f91d70787dbc007b8221f0e6d7fda8affdacc.tar.xz
Fix check of wrong variable
Diffstat (limited to '')
-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 585bd1c4ad..5a14c51d23 100644
--- a/synapse/replication/resource.py
+++ b/synapse/replication/resource.py
@@ -238,7 +238,7 @@ class ReplicationResource(Resource):
         request_backfill = request_streams.get("backfill")
 
         if request_events is not None or request_backfill is not None:
-            if request_backfill is None:
+            if request_events is None:
                 request_events = current_token.events
             if request_backfill is None:
                 request_backfill = current_token.backfill