diff options
author | Marko Kreen | 2008-06-18 09:17:00 +0000 |
---|---|---|
committer | Marko Kreen | 2008-06-18 09:17:00 +0000 |
commit | dd08a0df10ea5c1e120b8a31bb932d905918494b (patch) | |
tree | 2d9987614ce5ed354e5672b5baad3791627a6966 /python/walmgr.py | |
parent | 438d9a5084abc8e56a9ddaf5e2fa618e08447cc5 (diff) |
import typo fix from -stable, restore stat_add
to keep the differences minimal
Diffstat (limited to 'python/walmgr.py')
-rwxr-xr-x | python/walmgr.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/walmgr.py b/python/walmgr.py index ea384705..fc677d41 100755 --- a/python/walmgr.py +++ b/python/walmgr.py @@ -95,7 +95,7 @@ def copy_conf(src, dst): return False if os.path.islink(src): linkdst = os.readlink(src) - os.symlink(linkdst, listdst) + os.symlink(linkdst, dst) elif os.path.isfile(src): shutil.copy2(src, dst) else: @@ -645,8 +645,8 @@ class WalMgr(skytools.DBScript): self.log.debug("%s: done", srcname) end_time = time.time() - self.stat_put('count', 1) - self.stat_put('duration', end_time - start_time) + self.stat_add('count', 1) + self.stat_add('duration', end_time - start_time) self.send_stats() def slave_append_partial(self): @@ -942,7 +942,7 @@ class WalMgr(skytools.DBScript): open(prgrfile, "w").write("1") # it would be nice to have apply time too - self.stat_put('count', 1) + self.stat_add('count', 1) self.send_stats() def restore_database(self): |