summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-08-27 13:20:34 +0100
committerGitHub <noreply@github.com>2020-08-27 13:20:34 +0100
commit5649b7f3d05f8e550fba8349433eefd09aacce27 (patch)
tree105b6b1d055dddfc8adcc796d94d32fd4fa4a213 /synapse
parentConvert additional database methods to async (select list, search, insert_man... (diff)
downloadsynapse-5649b7f3d05f8e550fba8349433eefd09aacce27.tar.xz
Fix missing _add_persisted_position (#8179)
This was forgotten in #8164.
Diffstat (limited to '')
-rw-r--r--synapse/storage/util/id_generators.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/util/id_generators.py b/synapse/storage/util/id_generators.py
index 5b07847773..b27a4843d0 100644
--- a/synapse/storage/util/id_generators.py
+++ b/synapse/storage/util/id_generators.py
@@ -343,6 +343,8 @@ class MultiWriterIdGenerator:
                 curr = self._current_positions.get(self._instance_name, 0)
                 self._current_positions[self._instance_name] = max(curr, next_id)
 
+            self._add_persisted_position(next_id)
+
     def get_current_token(self) -> int:
         """Returns the maximum stream id such that all stream ids less than or
         equal to it have been successfully persisted.