summary refs log tree commit diff
path: root/synapse/storage/util
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-04-07 16:26:52 +0100
committerMark Haines <mark.haines@matrix.org>2016-04-07 16:52:07 +0100
commitceb599e789ef34a3733a99d17701a75fc5409d17 (patch)
tree8641d93b820f619f28b8cd588e7b532839b955c4 /synapse/storage/util
parentMerge pull request #704 from matrix-org/markh/slaveIII (diff)
downloadsynapse-ceb599e789ef34a3733a99d17701a75fc5409d17.tar.xz
Add tests for redactions
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 f69f1cdad4..46cf93ff87 100644
--- a/synapse/storage/util/id_generators.py
+++ b/synapse/storage/util/id_generators.py
@@ -112,7 +112,7 @@ class StreamIdGenerator(object):
                 self._current + self._step * (n + 1),
                 self._step
             )
-            self._current += n
+            self._current += n * self._step
 
             for next_id in next_ids:
                 self._unfinished_ids.append(next_id)