summaryrefslogtreecommitdiff
path: root/python/walmgr.py
diff options
context:
space:
mode:
authorSergey Burladyan2012-05-10 17:55:43 +0000
committerMarko Kreen2012-05-10 18:19:30 +0000
commit2590ff7ca84e1c46588847cb95b01c718edf57b2 (patch)
treeb078011ded11807642aef128a3879122d2a151f1 /python/walmgr.py
parentb888af93273edcee6a458a897413808cfd4270cf (diff)
walmgr: fix backup from slave
Current version improperly remove needed WAL files when creating backup from slave. The minimum WAL file is file with REDO record, not with latest checkpoint itself.
Diffstat (limited to 'python/walmgr.py')
-rwxr-xr-xpython/walmgr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/walmgr.py b/python/walmgr.py
index f990bdef..37d3ea78 100755
--- a/python/walmgr.py
+++ b/python/walmgr.py
@@ -1265,7 +1265,7 @@ primary_conninfo = %(primary_conninfo)s
stop_time = time.localtime()
# Obtain the last restart point information
- ctl = PgControlData(self.cf.getfile("slave_bin", ""), dst, False)
+ ctl = PgControlData(self.cf.getfile("slave_bin", ""), dst, True)
# TODO: The newly created backup directory probably still contains
# backup_label.old and recovery.conf files. Remove these.