Fix backfill storing incorrect state for events

This commit is contained in:
Erik Johnston 2019-02-22 11:33:51 +00:00
parent e07384c4e1
commit 7b288826b7
1 changed files with 4 additions and 1 deletions

View File

@ -772,8 +772,11 @@ class FederationHandler(BaseHandler):
ev_infos = [] ev_infos = []
for a in auth_events.values(): for a in auth_events.values():
if a.event_id in seen_events: # We only want to persist auth events as outliers that we haven't
# seen and aren't about to persist as part of the backfilled chunk.
if a.event_id in seen_events or a.event_id in event_map:
continue continue
a.internal_metadata.outlier = True a.internal_metadata.outlier = True
ev_infos.append({ ev_infos.append({
"event": a, "event": a,