diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-03-10 08:55:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 08:55:52 -0500 |
commit | 918f6ed827ceabc052eddba15d2e6aeefe36be23 (patch) | |
tree | 65c42ee91d9e429049118bcd13f3786a06838deb | |
parent | Do not ignore the unpaddedbase64 module when type checking. (#9568) (diff) | |
download | synapse-918f6ed827ceabc052eddba15d2e6aeefe36be23.tar.xz |
Fix a bug in the background task for purging chain cover. (#9583)
-rw-r--r-- | changelog.d/9583.bugfix | 1 | ||||
-rw-r--r-- | synapse/storage/databases/main/events_bg_updates.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/9583.bugfix b/changelog.d/9583.bugfix new file mode 100644 index 0000000000..51b1876f3b --- /dev/null +++ b/changelog.d/9583.bugfix @@ -0,0 +1 @@ +Purge chain cover indexes for events that were purged prior to Synapse v1.29.0. diff --git a/synapse/storage/databases/main/events_bg_updates.py b/synapse/storage/databases/main/events_bg_updates.py index 73e69d4cb1..78367ea58d 100644 --- a/synapse/storage/databases/main/events_bg_updates.py +++ b/synapse/storage/databases/main/events_bg_updates.py @@ -969,7 +969,7 @@ class EventsBackgroundUpdatesStore(SQLBaseStore): 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 |