Skip to content
Snippets Groups Projects
Unverified Commit 182ca78a authored by Mathieu Velten's avatar Mathieu Velten Committed by GitHub
Browse files

Delete events from federation_inbound_events_staging table on purge (#12770)

parent 5331fb5b
No related branches found
No related tags found
No related merge requests found
Delete events from the `federation_inbound_events_staging` table when a room is purged through the admin API.
......@@ -417,6 +417,7 @@ class PurgeEventsStore(StateGroupWorkerStore, CacheInvalidationWorkerStore):
"room_account_data",
"room_tags",
"local_current_membership",
"federation_inbound_events_staging",
):
logger.info("[purge] removing %s from %s", room_id, table)
txn.execute("DELETE FROM %s WHERE room_id=?" % (table,), (room_id,))
......
......@@ -2489,4 +2489,5 @@ PURGE_TABLES = [
"room_tags",
# "state_groups", # Current impl leaves orphaned state groups around.
"state_groups_state",
"federation_inbound_events_staging",
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment