diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-03-03 11:04:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 11:04:08 -0500 |
commit | 922788c6043138165c025c78effeda87de842bab (patch) | |
tree | 410858f7e15fdf985e53d331cea7d7b704934c77 /synapse/storage/purge_events.py | |
parent | Add type hints to user admin API. (#9521) (diff) | |
download | synapse-922788c6043138165c025c78effeda87de842bab.tar.xz |
Purge chain cover tables when purging events. (#9498)
Diffstat (limited to 'synapse/storage/purge_events.py')
-rw-r--r-- | synapse/storage/purge_events.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/synapse/storage/purge_events.py b/synapse/storage/purge_events.py index 3c4908865f..4dcd848c59 100644 --- a/synapse/storage/purge_events.py +++ b/synapse/storage/purge_events.py @@ -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 |