summary refs log tree commit diff
path: root/synapse/storage/event_federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-05 18:21:19 +0100
committerErik Johnston <erik@matrix.org>2015-05-05 18:21:19 +0100
commit0c4ac271ca2c9e46e20ba9546f0e6f1983d8e923 (patch)
treeaa5af8e6167cffa28a30d5eb329db1203678103c /synapse/storage/event_federation.py
parentDon't insert without deduplication. In this case we never actually use this t... (diff)
parentAnd use buffer(...) there as well (diff)
downloadsynapse-0c4ac271ca2c9e46e20ba9546f0e6f1983d8e923.tar.xz
Merge branch 'erikj/executemany' of github.com:matrix-org/synapse into erikj/SYN-371
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 36b1feac60..74b4e23590 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -332,7 +332,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