mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 23:58:38 -04:00
Have all instances correctly respond to REPLICATE command. (#7475)
Before all streams were only written to from master, so only master needed to respond to `REPLICATE` commands. Before all instances wrote to the cache invalidation stream, but didn't respond to `REPLICATE`. This was a bug, which could lead to missed rows from cache invalidation stream if an instance is restarted, however all the caches would be empty in that case so it wasn't a problem.
This commit is contained in:
parent
8ca79613e6
commit
7ee24c5674
4 changed files with 51 additions and 48 deletions
|
@ -52,9 +52,9 @@ class ReplicationGetStreamUpdates(ReplicationEndpoint):
|
|||
|
||||
self._instance_name = hs.get_instance_name()
|
||||
|
||||
# We pull the streams from the replication steamer (if we try and make
|
||||
# We pull the streams from the replication handler (if we try and make
|
||||
# them ourselves we end up in an import loop).
|
||||
self.streams = hs.get_replication_streamer().get_streams()
|
||||
self.streams = hs.get_tcp_replication().get_streams()
|
||||
|
||||
@staticmethod
|
||||
def _serialize_payload(stream_name, from_token, upto_token):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue