mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 09:35:45 +03:00
Fix a bug in the background task for purging chain cover. (#9583)
This commit is contained in:
parent
67b979bfa1
commit
918f6ed827
2 changed files with 2 additions and 1 deletions
1
changelog.d/9583.bugfix
Normal file
1
changelog.d/9583.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Purge chain cover indexes for events that were purged prior to Synapse v1.29.0.
|
|
@ -969,7 +969,7 @@ class EventsBackgroundUpdatesStore(SQLBaseStore):
|
||||||
event_id = ""
|
event_id = ""
|
||||||
for event_id, chain_id, sequence_number, has_event in rows:
|
for event_id, chain_id, sequence_number, has_event in rows:
|
||||||
if not has_event:
|
if not has_event:
|
||||||
unreferenced_event_ids.append(event_id)
|
unreferenced_event_ids.append((event_id,))
|
||||||
unreferenced_chain_id_tuples.append((chain_id, sequence_number))
|
unreferenced_chain_id_tuples.append((chain_id, sequence_number))
|
||||||
|
|
||||||
# Delete the unreferenced auth chains from event_auth_chain_links and
|
# Delete the unreferenced auth chains from event_auth_chain_links and
|
||||||
|
|
Loading…
Reference in a new issue