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

Commit ed6a712

Browse files
committed
Also purge redactions when purging events
Previously redacints where left behind leading to backfilling issues when the server stumbled across the already existing yet to be backfilled redactions. This issues has been discussed in #8707. Signed-off-by: Andreas Rammhold <[email protected]>
1 parent db2d5da commit ed6a712

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/10343.bugfix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Fix duplicate key error during backfilling of redaction events that were not deleted by the history purge job. Contributed by Andreas Rammhold (@andir).
1+
Fix errors during backfill caused by previously purged redaction events. Contributed by Andreas Rammhold (@andir).

synapse/storage/databases/main/purge_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def _purge_history_txn(
215215
"event_relations",
216216
"event_search",
217217
"rejections",
218+
"redactions",
218219
):
219220
logger.info("[purge] removing events from %s", table)
220221

0 commit comments

Comments
 (0)