MatrixSynapse/synapse/storage
Erik Johnston 8cb44da4aa Fix race in sync when joining room
The race happens when the user joins a room at the same time as doing a
sync. We fetch the current token and then get the rooms the user is in.
If the join happens after the current token, but before we get the rooms
we end up sending down a partial room entry in the sync.

This is fixed by looking at the stream ordering of the membership
returned by get_rooms_for_user, and handling the case when that stream
ordering is after the current token.
2018-03-07 11:55:31 +00:00
..
engines
schema
util
__init__.py
_base.py
account_data.py
appservice.py
background_updates.py
client_ips.py
deviceinbox.py
devices.py
directory.py
end_to_end_keys.py
event_federation.py
event_push_actions.py
events.py Fix race in sync when joining room 2018-03-07 11:55:31 +00:00
events_worker.py
filtering.py
group_server.py
keys.py
media_repository.py
openid.py
prepare_database.py
presence.py
profile.py
push_rule.py
pusher.py
receipts.py
registration.py
rejections.py
room.py
roommember.py Fix race in sync when joining room 2018-03-07 11:55:31 +00:00
search.py
signatures.py
state.py
stream.py
tags.py
transactions.py
user_directory.py