summary refs log tree commit diff
path: root/synapse/replication/tcp/redis.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-05-05 19:32:35 +0100
committerRichard van der Hoff <richard@matrix.org>2020-05-05 22:38:16 +0100
commit7f7eedbebba561771f39c22c78d1dfa1412283a5 (patch)
tree8609497af062fc86fbd4d0488cbf418c7db99d92 /synapse/replication/tcp/redis.py
parentWait to subscribe before sending REPLICATE (diff)
downloadsynapse-7f7eedbebba561771f39c22c78d1dfa1412283a5.tar.xz
Wait for a POSITION on the right connection before accepting RDATA
... otherwise we can believe we're up to date when we're not.
Diffstat (limited to 'synapse/replication/tcp/redis.py')
-rw-r--r--synapse/replication/tcp/redis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/tcp/redis.py b/synapse/replication/tcp/redis.py
index 61dbf4ddbe..b3ae9f401c 100644
--- a/synapse/replication/tcp/redis.py
+++ b/synapse/replication/tcp/redis.py
@@ -144,7 +144,7 @@ class RedisSubscriber(txredisapi.SubscriberProtocol, AbstractConnection):
         Args:
             cmd (Command)
         """
-        run_as_background_process("send-cmd", self._send_command, cmd)
+        run_as_background_process("send-cmd", self._async_send_command, cmd)
 
     async def _async_send_command(self, cmd: Command):
         """Encode a replication command and send it over our outbound connection"""