mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Delete events from federation_inbound_events_staging table on purge (#12770)
This commit is contained in:
parent
5331fb5b47
commit
182ca78a12
1
changelog.d/12770.bugfix
Normal file
1
changelog.d/12770.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
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_account_data",
|
||||||
"room_tags",
|
"room_tags",
|
||||||
"local_current_membership",
|
"local_current_membership",
|
||||||
|
"federation_inbound_events_staging",
|
||||||
):
|
):
|
||||||
logger.info("[purge] removing %s from %s", room_id, table)
|
logger.info("[purge] removing %s from %s", room_id, table)
|
||||||
txn.execute("DELETE FROM %s WHERE room_id=?" % (table,), (room_id,))
|
txn.execute("DELETE FROM %s WHERE room_id=?" % (table,), (room_id,))
|
||||||
|
@ -2489,4 +2489,5 @@ PURGE_TABLES = [
|
|||||||
"room_tags",
|
"room_tags",
|
||||||
# "state_groups", # Current impl leaves orphaned state groups around.
|
# "state_groups", # Current impl leaves orphaned state groups around.
|
||||||
"state_groups_state",
|
"state_groups_state",
|
||||||
|
"federation_inbound_events_staging",
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user