summary refs log tree commit diff
path: root/synapse/storage/util
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-29 19:17:25 +0100
committerErik Johnston <erik@matrix.org>2015-04-29 19:17:25 +0100
commit0ade2712d13236e557f94172c102e03545d8ac09 (patch)
tree2bc8823466f788be2333ce124d816bab1c328b9a /synapse/storage/util
parentAlso remove yield from within lock in the other generator (diff)
downloadsynapse-0ade2712d13236e557f94172c102e03545d8ac09.tar.xz
Typo
Diffstat (limited to 'synapse/storage/util')
-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