diff options
author | Erik Johnston <erik@matrix.org> | 2020-08-27 13:20:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-27 13:20:34 +0100 |
commit | 5649b7f3d05f8e550fba8349433eefd09aacce27 (patch) | |
tree | 105b6b1d055dddfc8adcc796d94d32fd4fa4a213 /synapse/storage/util | |
parent | Convert additional database methods to async (select list, search, insert_man... (diff) | |
download | synapse-5649b7f3d05f8e550fba8349433eefd09aacce27.tar.xz |
Fix missing _add_persisted_position (#8179)
This was forgotten in #8164.
Diffstat (limited to 'synapse/storage/util')
-rw-r--r-- | synapse/storage/util/id_generators.py | 2 |
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. |