mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 03:05:03 -04:00
On catchup, process each row with its own stream id (#7286)
Other parts of the code (such as the StreamChangeCache) assume that there will not be multiple changes with the same stream id. This code was introduced in #7024, and I hope this fixes #7206.
This commit is contained in:
parent
054c231e58
commit
0f8f02bc39
3 changed files with 72 additions and 5 deletions
|
@ -126,6 +126,9 @@ class StreamChangeCache(object):
|
|||
"""
|
||||
assert type(stream_pos) is int
|
||||
|
||||
# FIXME: add a sanity check here that we are not overwriting existing
|
||||
# data in self._cache
|
||||
|
||||
if stream_pos > self._earliest_known_stream_pos:
|
||||
old_pos = self._entity_to_key.get(entity, None)
|
||||
if old_pos is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue