summary refs log tree commit diff
path: root/synapse/replication
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-05-27 19:31:44 +0100
committerErik Johnston <erik@matrix.org>2020-05-27 19:34:07 +0100
commit35c308731d3a014f20a91467830c808358681259 (patch)
treed6db0def2a763cefe67ac50227c70143b3c664ab /synapse/replication
parentImprove changelog wording (diff)
downloadsynapse-35c308731d3a014f20a91467830c808358681259.tar.xz
Speed up processing of federation stream RDATA rows.
Instead of storing and sending an ACK for every single row we send
synchronously, we instead do it asynchronously while batching up
updates.
Diffstat (limited to 'synapse/replication')
-rw-r--r--synapse/replication/tcp/handler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/replication/tcp/handler.py b/synapse/replication/tcp/handler.py
index cbcf46f3ae..932e63bd27 100644
--- a/synapse/replication/tcp/handler.py
+++ b/synapse/replication/tcp/handler.py
@@ -116,6 +116,8 @@ class ReplicationCommandHandler:
         # batching works.
         self._pending_batches = {}  # type: Dict[str, List[Any]]
 
+        self._queued_events = {}  # type: Dict[str, List[Any]]
+
         # The factory used to create connections.
         self._factory = None  # type: Optional[ReconnectingClientFactory]