From d99fa446e9f56d1cee7d1bedee393191f2a88960 Mon Sep 17 00:00:00 2001 From: caffeinated92 Date: Fri, 9 Aug 2024 13:44:31 +0700 Subject: [PATCH] remove old cookies --- cluster/srv_del.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cluster/srv_del.go b/cluster/srv_del.go index a7266b036..9c4fff423 100644 --- a/cluster/srv_del.go +++ b/cluster/srv_del.go @@ -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() }