summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-07-02 11:36:44 +0100
committerErik Johnston <erik@matrix.org>2018-07-02 11:36:44 +0100
commit3905c693c5c256d2380cf8aa94cd24fe64ac974b (patch)
tree27012b725d08c480e25e0b1384c9aea56561a362 /synapse
parentMerge pull request #3467 from matrix-org/hawkowl/contributor-requirements (diff)
downloadsynapse-3905c693c5c256d2380cf8aa94cd24fe64ac974b.tar.xz
Invalidate cache on correct thread
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index d816d4883c..a54abb9edd 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -801,7 +801,8 @@ class EventsStore(EventsWorkerStore):
                     ]
                 )
 
-                self._curr_state_delta_stream_cache.entity_has_changed(
+                txn.call_after(
+                    self._curr_state_delta_stream_cache.entity_has_changed,
                     room_id, max_stream_order,
                 )