summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-05-18 17:49:59 +0100
committerMark Haines <mjark@negativecurvature.net>2015-05-18 17:49:59 +0100
commit99914ec9f8d3f59c8a0571d8c9b21be7f56b5d31 (patch)
tree084839846d7968a0f416dc54627c07404e3b17a9 /synapse/storage
parentMerge pull request #154 from matrix-org/erikj/events_move (diff)
parentDon't bother sorting by the room_stream_ids, it shouldn't matter which order ... (diff)
downloadsynapse-99914ec9f8d3f59c8a0571d8c9b21be7f56b5d31.tar.xz
Merge pull request #152 from matrix-org/notifier_performance
Notifier performance
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/events.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index afdf0f7193..4fee155234 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -69,6 +69,9 @@ class EventsStore(SQLBaseStore):
         except _RollbackButIsFineException:
             pass
 
+        max_persisted_id = yield self._stream_id_gen.get_max_token(self)
+        defer.returnValue((stream_ordering, max_persisted_id))
+
     @defer.inlineCallbacks
     def get_event(self, event_id, check_redacted=True,
                   get_prev_content=False, allow_rejected=False,