Always advance stream tokens

This commit is contained in:
Erik Johnston 2017-04-03 15:22:56 +01:00
parent 1df7c28661
commit 0a6a966e2b

View file

@ -121,7 +121,10 @@ class ReplicationStreamer(object):
is currently being executed, so that nothing gets missed is currently being executed, so that nothing gets missed
""" """
if not self.connections: if not self.connections:
# Don't bother if nothing is listening # Don't bother if nothing is listening. We still need to advance
# the stream tokens otherwise they'll fall beihind forever
for stream in self.streams:
stream.advance_current_token()
return return
# If we're in the process of checking for new updates, mark that fact # If we're in the process of checking for new updates, mark that fact