mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-10 14:06:30 -05:00
Purge chain cover tables when purging events. (#9498)
This commit is contained in:
parent
d790d0d314
commit
922788c604
3 changed files with 38 additions and 10 deletions
|
|
@ -73,9 +73,6 @@ class PurgeEventsStorage:
|
|||
Returns:
|
||||
The set of state groups that can be deleted.
|
||||
"""
|
||||
# Graph of state group -> previous group
|
||||
graph = {}
|
||||
|
||||
# Set of events that we have found to be referenced by events
|
||||
referenced_groups = set()
|
||||
|
||||
|
|
@ -111,8 +108,6 @@ class PurgeEventsStorage:
|
|||
next_to_search |= prevs
|
||||
state_groups_seen |= prevs
|
||||
|
||||
graph.update(edges)
|
||||
|
||||
to_delete = state_groups_seen - referenced_groups
|
||||
|
||||
return to_delete
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue