summary refs log tree commit diff
path: root/synapse/storage/event_federation.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-05-05 17:46:13 +0100
committerMark Haines <mjark@negativecurvature.net>2015-05-05 17:46:13 +0100
commit31049c4d729d3244f208b874e12a1edb055bbf63 (patch)
tree3b5ce83a989809a0b29d393fa04522517c0ed947 /synapse/storage/event_federation.py
parentFix the --help option for synapse (diff)
parentAdd some doc-string (diff)
downloadsynapse-31049c4d729d3244f208b874e12a1edb055bbf63.tar.xz
Merge pull request #139 from matrix-org/bugs/SYN-369
Fix race with cache invalidation. SYN-369
Diffstat (limited to 'synapse/storage/event_federation.py')
-rw-r--r--synapse/storage/event_federation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index 68f39bd684..893344eff3 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -330,7 +330,9 @@ class EventFederationStore(SQLBaseStore):
             )
             txn.execute(query)
 
-            self.get_latest_event_ids_in_room.invalidate(room_id)
+            txn.call_after(
+                self.get_latest_event_ids_in_room.invalidate, room_id
+            )
 
     def get_backfill_events(self, room_id, event_list, limit):
         """Get a list of Events for a given topic that occurred before (and