Add a simple hook to wait for replication traffic

This commit is contained in:
Erik Johnston 2017-03-27 14:05:07 +01:00
parent 24d35ab47b
commit 7984708a55
1 changed files with 6 additions and 0 deletions

View File

@ -550,3 +550,9 @@ class Notifier(object):
break
defer.returnValue(result)
def wait_once_for_replication(self):
"""Returns a deferred which resolves when there is new data for
replication to handle.
"""
return self.replication_deferred.observe()