diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-06-15 08:44:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 08:44:54 -0400 |
commit | 7d2532be36dc116e130ad226a7462bb0e899aca4 (patch) | |
tree | ff008562381c65706509a752d383e165140536d5 /synapse/app | |
parent | Replace iteritems/itervalues/iterkeys with native versions. (#7692) (diff) | |
download | synapse-7d2532be36dc116e130ad226a7462bb0e899aca4.tar.xz |
Discard RDATA from already seen positions. (#7648)
Diffstat (limited to 'synapse/app')
-rw-r--r-- | synapse/app/generic_worker.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/app/generic_worker.py b/synapse/app/generic_worker.py index f3ec2a34ec..53c488d211 100644 --- a/synapse/app/generic_worker.py +++ b/synapse/app/generic_worker.py @@ -738,6 +738,11 @@ class GenericWorkerReplicationHandler(ReplicationDataHandler): except Exception: logger.exception("Error processing replication") + async def on_position(self, stream_name: str, instance_name: str, token: int): + await super().on_position(stream_name, instance_name, token) + # Also call on_rdata to ensure that stream positions are properly reset. + await self.on_rdata(stream_name, instance_name, token, []) + def stop_pusher(self, user_id, app_id, pushkey): if not self.notify_pushers: return |