mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 03:25:53 +03:00
Need to fix upsert
This commit is contained in:
parent
ca909013c8
commit
3367422fd3
1 changed files with 3 additions and 0 deletions
|
@ -2008,6 +2008,9 @@ class PersistEventsStore:
|
||||||
# `_store_event_txn` is run before `_update_current_state_txn` which handles
|
# `_store_event_txn` is run before `_update_current_state_txn` which handles
|
||||||
# deleting the rows if we are no longer in the room so we don't need to worry
|
# deleting the rows if we are no longer in the room so we don't need to worry
|
||||||
# about inserting something that will be orphaned.
|
# about inserting something that will be orphaned.
|
||||||
|
#
|
||||||
|
# FIXME: We need to handle cases where we are persisting events out of order and
|
||||||
|
# the stream_ordering didn't increase.
|
||||||
self.db_pool.simple_upsert_many_txn(
|
self.db_pool.simple_upsert_many_txn(
|
||||||
txn,
|
txn,
|
||||||
table="sliding_sync_joined_rooms",
|
table="sliding_sync_joined_rooms",
|
||||||
|
|
Loading…
Reference in a new issue