mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-03 08:21:54 -04:00
Fix missing _add_persisted_position (#8179)
This was forgotten in #8164.
This commit is contained in:
parent
30426c7063
commit
5649b7f3d0
3 changed files with 52 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue