(self)
Remove WAL files not needed for recovery
Remove WAL files not needed for recovery
Remove WAL files not needed for recovery
def slave_purge_wals(self):
        """
        Remove WAL files not needed for recovery
        """
        self.assert_is_master(False)
        backups = self.get_backup_list(self.cf.getfile("full_backup"))
        if backups:
            lastwal = self.get_first_walname(backups[-1])
            if lastwal:
                self.log.info("First useful WAL file is: %s", lastwal)
                self.slave_cleanup(lastwal)
        else:
            self.log.debug("No WAL-s to clean up.")
def slave_purge_wals ( self ) : self . assert_is_master ( False ) backups = self . get_backup_list ( self . cf . getfile ( "full_backup" ) ) if backups : lastwal = self . get_first_walname ( backups [ - 1 ] ) if lastwal : self . log . info ( "First useful WAL file is: %s" , lastwal ) self . slave_cleanup ( lastwal ) else : self . log . debug ( "No WAL-s to clean up." )