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

Commit

Permalink
Fix HTTP repl response to use minimum token (#16578)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston authored Oct 30, 2023
1 parent ba55835 commit 8c63e93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/16578.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a long-standing, exceedingly rare edge case where the first event persisted by a new event persister worker might not be sent down `/sync`.
2 changes: 1 addition & 1 deletion synapse/replication/http/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ async def _check_auth_and_handle(

if self.WAIT_FOR_STREAMS:
response[_STREAM_POSITION_KEY] = {
stream.NAME: stream.current_token(self._instance_name)
stream.NAME: stream.minimal_local_current_token()
for stream in self._streams
}

Expand Down

0 comments on commit 8c63e93

Please sign in to comment.