diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-08-26 18:34:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 18:34:57 +0100 |
commit | 96715d763362a7027c39d571cfde3aa8b7b82fcf (patch) | |
tree | f2154010e71766bef84ca3042b24043390d90c98 /synapse/storage/databases | |
parent | Validate new m.room.power_levels events (#10232) (diff) | |
download | synapse-96715d763362a7027c39d571cfde3aa8b7b82fcf.tar.xz |
Make `backfill` and `get_missing_events` use the same codepath (#10645)
Given that backfill and get_missing_events are basically the same thing, it's somewhat crazy that we have entirely separate code paths for them. This makes backfill use the existing get_missing_events code, and then clears up all the unused code.
Diffstat (limited to 'synapse/storage/databases')
-rw-r--r-- | synapse/storage/databases/main/purge_events.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/purge_events.py b/synapse/storage/databases/main/purge_events.py index 664c65dac5..bccff5e5b9 100644 --- a/synapse/storage/databases/main/purge_events.py +++ b/synapse/storage/databases/main/purge_events.py @@ -295,6 +295,7 @@ class PurgeEventsStore(StateGroupWorkerStore, CacheInvalidationWorkerStore): self._invalidate_cache_and_stream( txn, self.have_seen_event, (room_id, event_id) ) + self._invalidate_get_event_cache(event_id) logger.info("[purge] done") |