(self)
Remove backup lock file, allow other backups to run
Remove backup lock file, allow other backups to run
Remove backup lock file allow other backups to run
def slave_resume_backups(self):
        """Remove backup lock file, allow other backups to run"""
        self.assert_is_master(False)
        srcdir = self.cf.getfile("completed_wals")
        lockfile = os.path.join(srcdir, "BACKUPLOCK")
        if os.path.isfile(lockfile):
            if not self.not_really:
                os.remove(lockfile)
            self.log.info("Backup lock released.")
        else:
            self.log.info("Backup lock not held.")
def slave_resume_backups ( self ) : self . assert_is_master ( False ) srcdir = self . cf . getfile ( "completed_wals" ) lockfile = os . path . join ( srcdir , "BACKUPLOCK" ) if os . path . isfile ( lockfile ) : if not self . not_really : os . remove ( lockfile ) self . log . info ( "Backup lock released." ) else : self . log . info ( "Backup lock not held." )