summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2018-07-04 10:11:38 +0100
committerGitHub <noreply@github.com>2018-07-04 10:11:38 +0100
commit13f7adf84b305e0a9f74673f8e586cf1ca943d23 (patch)
tree25659a294ffb9a01108ec69eb6cbfb3efc7ba23c /synapse/storage
parentMerge pull request #3474 from matrix-org/erikj/py3_auth (diff)
parentCorrect newsfile (diff)
downloadsynapse-13f7adf84b305e0a9f74673f8e586cf1ca943d23.tar.xz
Merge pull request #3473 from matrix-org/erikj/thread_cache
Invalidate cache on correct thread
Diffstat (limited to 'synapse/storage')
-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,
                 )