mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
a139420a3c
Hopefully this will fix the occasional failures we were seeing in the room directory. The problem was that events are not necessarily persisted (and `current_state_delta_stream` updated) in the same order as their stream_id. So for instance current_state_delta 9 might be persisted *before* current_state_delta 8. Then, when the room stats saw stream_id 9, it assumed it had done everything up to 9, and never came back to do stream_id 8. We can solve this easily by only processing up to the stream_id where we know all events have been persisted. |
||
---|---|---|
.. | ||
__init__.py | ||
test_admin.py | ||
test_appservice.py | ||
test_auth.py | ||
test_device.py | ||
test_directory.py | ||
test_e2e_keys.py | ||
test_e2e_room_keys.py | ||
test_federation.py | ||
test_presence.py | ||
test_profile.py | ||
test_register.py | ||
test_stats.py | ||
test_sync.py | ||
test_typing.py | ||
test_user_directory.py |