Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix StreamIdGenerator not handling unpersisted IDs
Browse files Browse the repository at this point in the history
Spotted by @erikjohnston.

Closes #14456.
  • Loading branch information
erikjohnston authored and David Robertson committed Nov 16, 2022
1 parent 8d3fd3a commit f0601a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/storage/util/id_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def manager() -> Generator[Sequence[int], None, None]:
return _AsyncCtxManagerWrapper(manager())

def get_current_token(self) -> int:
if self._is_writer:
if not self._is_writer:
return self._current

with self._lock:
Expand Down

0 comments on commit f0601a2

Please sign in to comment.