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>
Showing
- changelog.d/13151.misc 1 addition, 0 deletionschangelog.d/13151.misc
- synapse/handlers/federation.py 2 additions, 7 deletionssynapse/handlers/federation.py
- synapse/replication/http/__init__.py 2 additions, 0 deletionssynapse/replication/http/__init__.py
- synapse/replication/http/state.py 75 additions, 0 deletionssynapse/replication/http/state.py
- synapse/state/__init__.py 25 additions, 0 deletionssynapse/state/__init__.py
- synapse/storage/controllers/persist_events.py 100 additions, 41 deletionssynapse/storage/controllers/persist_events.py
- synapse/storage/databases/main/events.py 7 additions, 7 deletionssynapse/storage/databases/main/events.py
- tests/test_state.py 2 additions, 0 deletionstests/test_state.py
Loading
Please register or sign in to comment