Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 authored and ti-chi-bot committed Jul 1, 2023
1 parent 9626f93 commit 6312daa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/backup/backup/backup_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ func (bm *backupManager) waitPreTaskDone(backup *v1alpha1.Backup) error {
backupJobName := backup.GetBackupJobName()

// check whether backup should wait and requeue
if logBackupSubcommand := v1alpha1.ParseLogBackupSubcommand(backup); shouldLogBackupCommandRequeue(backup) {
if shouldLogBackupCommandRequeue(backup) {
logBackupSubcommand := v1alpha1.ParseLogBackupSubcommand(backup)
klog.Infof("log backup %s/%s subcommand %s should wait log backup start complete, will requeue.", ns, name, logBackupSubcommand)
return controller.RequeueErrorf(fmt.Sprintf("log backup %s/%s command %s should wait log backup start complete", ns, name, logBackupSubcommand))
}
Expand Down

0 comments on commit 6312daa

Please sign in to comment.