Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix a bug in the background task for purging chain cover. (#9583)
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep authored Mar 10, 2021
1 parent 67b979b commit 918f6ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/9583.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Purge chain cover indexes for events that were purged prior to Synapse v1.29.0.
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/events_bg_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ def purged_chain_cover_txn(txn) -> int:
event_id = ""
for event_id, chain_id, sequence_number, has_event in rows:
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))

# Delete the unreferenced auth chains from event_auth_chain_links and
Expand Down

0 comments on commit 918f6ed

Please sign in to comment.