Skip to content

Commit

Permalink
Merge pull request #806 from signal18/jobs
Browse files Browse the repository at this point in the history
remove old backup cookies
  • Loading branch information
caffeinated92 authored Aug 9, 2024
2 parents a006444 + d99fa44 commit 335039a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cluster/srv_del.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,22 @@ func (server *ServerMonitor) DelBackupMariabackupCookie() error {
func (server *ServerMonitor) DelBackupTypeCookie(backtype string) error {
switch backtype {
case config.ConstBackupLogicalTypeMysqldump:
server.DelBackupLogicalCookie()
return server.DelBackupMysqldumpCookie()
case config.ConstBackupLogicalTypeMydumper:
server.DelBackupLogicalCookie()
return server.DelBackupMydumperCookie()
case config.ConstBackupLogicalTypeDumpling:
server.DelBackupLogicalCookie()
return server.DelBackupDumplingCookie()
case config.ConstBackupPhysicalTypeXtrabackup:
server.DelBackupPhysicalCookie()
return server.DelBackupXtrabackupCookie()
case config.ConstBackupPhysicalTypeMariaBackup:
server.DelBackupPhysicalCookie()
return server.DelBackupMariabackupCookie()
case "script":
server.DelBackupLogicalCookie()
return server.DelBackupScriptCookie()
}

Expand Down

0 comments on commit 335039a

Please sign in to comment.