diff options
Diffstat (limited to 'python/walmgr.py')
-rwxr-xr-x | python/walmgr.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/walmgr.py b/python/walmgr.py index 408d8650..edbfaf64 100755 --- a/python/walmgr.py +++ b/python/walmgr.py @@ -1502,7 +1502,6 @@ STOP TIME: %(stop_time)s self.log.debug("%s: start copy", srcname) self.master_periodic() - self.set_last_complete(srcname) dst_loc = self.cf.getfile("completed_wals") if dst_loc[-1] != "/": @@ -1517,6 +1516,9 @@ STOP TIME: %(stop_time)s cmdline = ["ssh", "-nT", slave, "sync" ] self.exec_cmd(cmdline) + # slave has the file now, set markers + self.set_last_complete(srcname) + self.log.debug("%s: done", srcname) end_time = time.time() self.stat_add('count', 1) |