summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTarvi Pillessaar2014-10-06 11:57:30 +0000
committerTarvi Pillessaar2014-10-06 11:57:30 +0000
commit1fae97a57e15bd1a0a24313af11cfd75d438a0fb (patch)
tree701bfbcbc4cf14c424e23b25a150514872b75923
parent224784fa0f6851176e28cdf5333120c35e3f1665 (diff)
walmgr: ignore .history files when removing PG_RECEIVEXLOG file
PG_RECEIVEXLOG got removed too early due to .history files that were not present
-rwxr-xr-xpython/walmgr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/walmgr.py b/python/walmgr.py
index 2918b067..8de02bd4 100755
--- a/python/walmgr.py
+++ b/python/walmgr.py
@@ -1821,7 +1821,7 @@ STOP TIME: %(stop_time)s
self.log.info("%s: not found (ignored)", srcname)
# remove PG_RECEIVEXLOG file if it's present
- if os.path.isfile(prxlogfile):
+ if os.path.isfile(prxlogfile) and not srcname.endswith('.history'):
os.remove(prxlogfile)
sys.exit(1)