mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix a bug in the background task for purging chain cover. (#9583)
This commit is contained in:
parent
67b979bfa1
commit
918f6ed827
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 New Issue
Block a user