diff options
author | Erik Johnston <erik@matrix.org> | 2021-05-10 15:48:27 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-05-10 15:48:27 +0100 |
commit | e5c6aafe61b4a24bcdac28ae32f80e091de6bf57 (patch) | |
tree | 4c682719f1eeebae52d21cd60abe6f84bb0485bc | |
parent | Handle deduplicating multiple fetch event requests (diff) | |
download | synapse-github/erikj/weakref_events.tar.xz |
Fix redactions github/erikj/weakref_events erikj/weakref_events
-rw-r--r-- | synapse/storage/databases/main/events_worker.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/events_worker.py b/synapse/storage/databases/main/events_worker.py index 430dad1b9b..c4e5d386bb 100644 --- a/synapse/storage/databases/main/events_worker.py +++ b/synapse/storage/databases/main/events_worker.py @@ -742,6 +742,8 @@ class EventsWorkerStore(SQLBaseStore): # that would require a larger refactor). cached_entry = self._in_memory_events.get(event_id) if cached_entry is not None: + # We need to add to the event_map as we read from it to fetch redactions. + event_map[event_id] = cached_entry.event result_map[event_id] = cached_entry self._get_event_cache.set((event_id,), cached_entry) continue |