forked-synapse/synapse/storage/databases/main
Marek Matys 6a8643ff3d
Fixed removal of new presence stream states (#10014)
Fixes: https://github.com/matrix-org/synapse/issues/9962

This is a fix for above problem.

I fixed it by swaping the order of insertion of new records and deletion of old ones. This ensures that we don't delete fresh database records as we do deletes before inserts.

Signed-off-by: Marek Matys <themarcq@gmail.com>
2021-05-21 12:02:06 +01:00
..
__init__.py Split presence out of master (#9820) 2021-04-23 12:21:55 +01:00
account_data.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
appservice.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
cache.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
censor_events.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
client_ips.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
deviceinbox.py Add debug logging for issue #9533 (#9959) 2021-05-11 11:04:03 +01:00
devices.py Minor @cachedList enhancements (#9975) 2021-05-14 11:12:36 +01:00
directory.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
e2e_room_keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
end_to_end_keys.py Minor @cachedList enhancements (#9975) 2021-05-14 11:12:36 +01:00
event_federation.py Remove synapse.types.Collection (#9856) 2021-04-22 16:43:50 +01:00
event_push_actions.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
events_bg_updates.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
events_forward_extremities.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
events_worker.py Remove synapse.types.Collection (#9856) 2021-04-22 16:43:50 +01:00
events.py Fix (final) Bugbear violations (#9838) 2021-04-20 11:50:49 +01:00
filtering.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
group_server.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
media_repository.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
metrics.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
monthly_active_users.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
openid.py Convert additional databases to async/await part 2 (#8200) 2020-09-01 08:39:04 -04:00
presence.py Fixed removal of new presence stream states (#10014) 2021-05-21 12:02:06 +01:00
profile.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
purge_events.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
push_rule.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
pusher.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
receipts.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
registration.py Remove unnecessary SystemRandom from SQLBaseStore (#9987) 2021-05-14 10:59:10 +01:00
rejections.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
relations.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
room.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
roommember.py Use get_current_users_in_room from store and not StateHandler (#9910) 2021-05-05 16:49:34 +01:00
search.py Remove synapse.types.Collection (#9856) 2021-04-22 16:43:50 +01:00
signatures.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state_deltas.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
stats.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
stream.py Remove synapse.types.Collection (#9856) 2021-04-22 16:43:50 +01:00
tags.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
transactions.py Revert "Experimental Federation Speedup (#9702)" 2021-04-28 11:38:33 +01:00
ui_auth.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
user_directory.py Use get_current_users_in_room from store and not StateHandler (#9910) 2021-05-05 16:49:34 +01:00
user_erasure_store.py Minor @cachedList enhancements (#9975) 2021-05-14 11:12:36 +01:00