From fa3f39eef8201b52e0563b4d817fb7d92b40604a Mon Sep 17 00:00:00 2001 From: ris <79858083+RidRisR@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:05:56 +0800 Subject: [PATCH] Update pkg/backup/backupschedule/backup_schedule_manager.go Co-authored-by: WangLe1321 --- pkg/backup/backupschedule/backup_schedule_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/backup/backupschedule/backup_schedule_manager.go b/pkg/backup/backupschedule/backup_schedule_manager.go index 0960863143..1f37c69f1c 100644 --- a/pkg/backup/backupschedule/backup_schedule_manager.go +++ b/pkg/backup/backupschedule/backup_schedule_manager.go @@ -304,7 +304,7 @@ func (bm *backupScheduleManager) handleLastCompact(ns, bsName, lastCompact strin return fmt.Errorf("backup schedule %s/%s: get compact backup %s failed: %w", ns, bsName, lastCompact, err) } - var timestamp string + var lastCompactTs string switch compact.Status.State { case string(v1alpha1.BackupComplete): timestamp = compact.Spec.EndTs