summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-15 17:34:59 +0100
committerErik Johnston <erik@matrix.org>2016-09-15 17:34:59 +0100
commitde4f798f01e2ad478639b103d293b86079aaf0bc (patch)
treeafc350e9be2b4213f0c100cfc41f321b46b033e0 /synapse/storage/__init__.py
parentMerge pull request #1125 from matrix-org/erikj/public_room_cache (diff)
downloadsynapse-de4f798f01e2ad478639b103d293b86079aaf0bc.tar.xz
Handling expiring stream extrems correctly.
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 0099a3f5bb..9996f195a0 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -222,6 +222,8 @@ class DataStore(RoomMemberStore, RoomStore,
             self._find_stream_orderings_for_times, 60 * 60 * 1000
         )
 
+        self._stream_order_on_start = self.get_room_max_stream_ordering()
+
         super(DataStore, self).__init__(hs)
 
     def take_presence_startup_info(self):