summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/storage/util/id_generators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/util/id_generators.py b/synapse/storage/util/id_generators.py
index a51268511c..e40eb8a8c4 100644
--- a/synapse/storage/util/id_generators.py
+++ b/synapse/storage/util/id_generators.py
@@ -85,7 +85,7 @@ class StreamIdGenerator(object):
                 # ... persist event ...
         """
         if not self._current_max:
-            self._compute_current_max(txn)
+            self._get_or_compute_current_max(txn)
 
         with self._lock:
             self._current_max += 1