Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RidRisR committed Aug 30, 2024
1 parent e1cd583 commit 47ad565
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pkg/apis/pingcap/v1alpha1/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ func ParseLogBackupSubcommand(backup *Backup) LogSubCommandType {
}
}

// TODO: (Ris) move logic about truncate to elsewhere
// IsLogBackupSubCommandOntheCondition return whether the log subcommand on the condition.
func IsLogBackupSubCommandOntheCondition(backup *Backup, conditionType BackupConditionType) bool {
command := ParseLogBackupSubcommand(backup)
Expand Down Expand Up @@ -419,7 +418,6 @@ func IsLogBackupAlreadyStop(backup *Backup) bool {
}

// IsLogBackupAlreadyStop return whether log backup has already paused.
//TODO: (Ris) deal with task stopped
func IsLogBackupAlreadyPaused(backup *Backup) bool {
return backup.Spec.Mode == BackupModeLog && backup.Status.Phase == BackupPaused
}
Expand Down
1 change: 0 additions & 1 deletion pkg/backup/backup/backup_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ func (bm *backupManager) syncBackupJob(backup *v1alpha1.Backup) error {
var job *batchv1.Job
var reason string
var updateStatus *controller.BackupUpdateStatus
//TODO: (Ris)modify the backupJobs
if job, updateStatus, reason, err = bm.makeBackupJob(backup); err != nil {
klog.Errorf("backup %s/%s create job %s failed, reason is %s, error %v.", ns, name, backupJobName, reason, err)
return err
Expand Down
1 change: 0 additions & 1 deletion pkg/controller/backup_status_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ func updateSnapshotBackupStatus(backup *v1alpha1.Backup, condition *v1alpha1.Bac

// updateLogBackupStatus update log backup status.
// it will update both the log backup sub command status and the whole log backup status.
//TODO: (Ris) add more states here
func updateLogBackupStatus(backup *v1alpha1.Backup, condition *v1alpha1.BackupCondition, newStatus *BackupUpdateStatus) bool {
// update whole backup status
isWholeStatusUpdate := updateWholeLogBackupStatus(backup, condition, newStatus)
Expand Down

0 comments on commit 47ad565

Please sign in to comment.