diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2022-07-07 13:19:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 12:19:31 +0000 |
commit | 1391a76cd2b287daebe61f7d8ea03b258ed522f5 (patch) | |
tree | 9a0265253ca0dd85b3fd12df1b2b3068f360554d /synapse/replication/http/__init__.py | |
parent | Use a single query in `ProfileHandler.get_profile` (#13209) (diff) | |
download | synapse-1391a76cd2b287daebe61f7d8ea03b258ed522f5.tar.xz |
Faster room joins: fix race in recalculation of current room state (#13151)
Bounce recalculation of current state to the correct event persister and move recalculation of current state into the event persistence queue, to avoid concurrent updates to a room's current state. Also give recalculation of a room's current state a real stream ordering. Signed-off-by: Sean Quah <seanq@matrix.org>
Diffstat (limited to 'synapse/replication/http/__init__.py')
-rw-r--r-- | synapse/replication/http/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/replication/http/__init__.py b/synapse/replication/http/__init__.py index aec040ee19..53aa7fa4c6 100644 --- a/synapse/replication/http/__init__.py +++ b/synapse/replication/http/__init__.py @@ -25,6 +25,7 @@ from synapse.replication.http import ( push, register, send_event, + state, streams, ) @@ -48,6 +49,7 @@ class ReplicationRestResource(JsonResource): streams.register_servlets(hs, self) account_data.register_servlets(hs, self) push.register_servlets(hs, self) + state.register_servlets(hs, self) # The following can't currently be instantiated on workers. if hs.config.worker.worker_app is None: |