fixed failed sync exit code
authorTarvi Pillessaar <tarvi.pillessaar@skype.net>
Wed, 27 Apr 2011 09:48:29 +0000 (09:48 +0000)
committerTarvi Pillessaar <tarvi.pillessaar@skype.net>
Wed, 27 Apr 2011 09:48:29 +0000 (09:48 +0000)
python/walmgr.py

index bfd42ad3be2435a3c925fda0e5b2216f21ced446..540de4f3cf6f3ec9ffdebd60ebc10d80b608c42c 100755 (executable)
@@ -1517,7 +1517,8 @@ STOP TIME: %(stop_time)s
                 # got interesting WAL
                 xlog = os.path.join(xlog_dir, fn)
                 # copy data
-                if self.exec_rsync([xlog, dst_loc]) != 0:
+                self.log.info('Syncing %s' % xlog)
+                if self.exec_rsync([xlog, dst_loc], not daemon_mode) != 0:
                     self.log.error('Cannot sync %s' % xlog)
                     break
             else: