mirror of
https://github.com/matrix-org/synapse.git
synced 2025-05-19 17:28:33 +00:00
Fix HTTP repl response to use minimum token (#16578)
This commit is contained in:
parent
ba55835000
commit
8c63e93286
1
changelog.d/16578.bugfix
Normal file
1
changelog.d/16578.bugfix
Normal file
@ -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`.
|
@ -433,7 +433,7 @@ class ReplicationEndpoint(metaclass=abc.ABCMeta):
|
|||||||
|
|
||||||
if self.WAIT_FOR_STREAMS:
|
if self.WAIT_FOR_STREAMS:
|
||||||
response[_STREAM_POSITION_KEY] = {
|
response[_STREAM_POSITION_KEY] = {
|
||||||
stream.NAME: stream.current_token(self._instance_name)
|
stream.NAME: stream.minimal_local_current_token()
|
||||||
for stream in self._streams
|
for stream in self._streams
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user