Fix event_backwards_extrem insertion to ignore outliers

This commit is contained in:
Erik Johnston 2015-05-19 15:27:00 +01:00
parent 5b1631a4a9
commit aa729349dd

View File

@ -338,11 +338,12 @@ class EventFederationStore(SQLBaseStore):
" )"
" AND NOT EXISTS ("
" SELECT 1 FROM events WHERE event_id = ? AND room_id = ? "
" AND outlier = ?"
" )"
)
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
])