From 1fae97a57e15bd1a0a24313af11cfd75d438a0fb Mon Sep 17 00:00:00 2001 From: Tarvi Pillessaar Date: Mon, 6 Oct 2014 14:57:30 +0300 Subject: walmgr: ignore .history files when removing PG_RECEIVEXLOG file PG_RECEIVEXLOG got removed too early due to .history files that were not present --- python/walmgr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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) -- cgit v1.2.3