forked from MirrorHub/synapse
Make sure we advance our stream position
This commit is contained in:
parent
260b498ee5
commit
3547e66bc6
1 changed files with 2 additions and 0 deletions
|
@ -146,12 +146,14 @@ class SlavedEventStore(BaseSlavedStore):
|
||||||
|
|
||||||
stream = result.get("forward_ex_outliers")
|
stream = result.get("forward_ex_outliers")
|
||||||
if stream:
|
if stream:
|
||||||
|
self._stream_id_gen.advance(stream["position"])
|
||||||
for row in stream["rows"]:
|
for row in stream["rows"]:
|
||||||
event_id = row[1]
|
event_id = row[1]
|
||||||
self._invalidate_get_event_cache(event_id)
|
self._invalidate_get_event_cache(event_id)
|
||||||
|
|
||||||
stream = result.get("backward_ex_outliers")
|
stream = result.get("backward_ex_outliers")
|
||||||
if stream:
|
if stream:
|
||||||
|
self._backfill_id_gen.advance(-stream["position"])
|
||||||
for row in stream["rows"]:
|
for row in stream["rows"]:
|
||||||
event_id = row[1]
|
event_id = row[1]
|
||||||
self._invalidate_get_event_cache(event_id)
|
self._invalidate_get_event_cache(event_id)
|
||||||
|
|
Loading…
Reference in a new issue