summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-08-27 17:03:45 +0100
committerMark Haines <mark.haines@matrix.org>2014-08-27 17:03:45 +0100
commitf54b70520a381130d9182c546fffeb17b2414b00 (patch)
treeca62316ade15cb71163a4bd136876d607240ffc3 /synapse/storage/__init__.py
parentMerge branch 'develop' into storage_transactions (diff)
downloadsynapse-f54b70520a381130d9182c546fffeb17b2414b00.tar.xz
Return the store_id from persist_event
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 514d7eeb69..e8faba3eeb 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -96,7 +96,9 @@ class DataStore(RoomMemberStore, RoomStore,
         if pdu is not None:
             self._persist_event_pdu_txn(txn, pdu)
         if event is not None:
-            self._persist_event_txn(txn, event, backfilled, stream_ordering)
+            return self._persist_event_txn(
+                txn, event, backfilled, stream_ordering
+            )
 
     def _persist_event_pdu_txn(self, txn, pdu):
         cols = dict(pdu.__dict__)