diff options
author | Erik Johnston <erik@matrix.org> | 2020-09-14 10:16:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-14 10:16:41 +0100 |
commit | 04cc249b43e8716513f788b2a4eeb8ede24d19df (patch) | |
tree | 1f5e539b9db71f3d47980ce99c47e6f1d747352b /synapse/replication/tcp/handler.py | |
parent | Merge tag 'v1.20.0rc3' into develop (diff) | |
download | synapse-04cc249b43e8716513f788b2a4eeb8ede24d19df.tar.xz |
Add experimental support for sharding event persister. Again. (#8294)
This is *not* ready for production yet. Caveats: 1. We should write some tests... 2. The stream token that we use for events can get stalled at the minimum position of all writers. This means that new events may not be processed and e.g. sent down sync streams if a writer isn't writing or is slow.
Diffstat (limited to 'synapse/replication/tcp/handler.py')
-rw-r--r-- | synapse/replication/tcp/handler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/tcp/handler.py b/synapse/replication/tcp/handler.py index 1c303f3a46..b323841f73 100644 --- a/synapse/replication/tcp/handler.py +++ b/synapse/replication/tcp/handler.py @@ -109,7 +109,7 @@ class ReplicationCommandHandler: if isinstance(stream, (EventsStream, BackfillStream)): # Only add EventStream and BackfillStream as a source on the # instance in charge of event persistence. - if hs.config.worker.writers.events == hs.get_instance_name(): + if hs.get_instance_name() in hs.config.worker.writers.events: self._streams_to_replicate.append(stream) continue |