mirror of
https://github.com/element-hq/synapse
synced 2024-10-06 15:52:40 +00:00
Fix event_backwards_extrem insertion to ignore outliers
This commit is contained in:
parent
5b1631a4a9
commit
aa729349dd
1 changed files with 3 additions and 2 deletions
|
@ -337,12 +337,13 @@ class EventFederationStore(SQLBaseStore):
|
||||||
" WHERE event_id = ? AND room_id = ?"
|
" WHERE event_id = ? AND room_id = ?"
|
||||||
" )"
|
" )"
|
||||||
" AND NOT EXISTS ("
|
" AND NOT EXISTS ("
|
||||||
" SELECT 1 FROM events WHERE event_id = ? AND room_id = ?"
|
" SELECT 1 FROM events WHERE event_id = ? AND room_id = ? "
|
||||||
|
" AND outlier = ?"
|
||||||
" )"
|
" )"
|
||||||
)
|
)
|
||||||
|
|
||||||
txn.executemany(query, [
|
txn.executemany(query, [
|
||||||
(e_id, room_id, e_id, room_id, e_id, room_id, )
|
(e_id, room_id, e_id, room_id, e_id, room_id, False)
|
||||||
for e_id, _ in prev_events
|
for e_id, _ in prev_events
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue