Skip to content

Commit

Permalink
backup: reindex when resuming on deduplicate stage
Browse files Browse the repository at this point in the history
  • Loading branch information
karol-kokoszka committed Jul 19, 2024
1 parent bbbffe6 commit c620b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/service/backup/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ func (s *Service) Backup(ctx context.Context, clusterID, taskID, runID uuid.UUID
// Skip completed stages
if run.PrevID != uuid.Nil {
// Allow reindexing if previous state is manifest creation or upload
if stage == StageIndex && (prevStage == StageManifest || prevStage == StageUpload) { //nolint: revive
if stage == StageIndex && (prevStage == StageManifest || prevStage == StageUpload || prevStage == StageDeduplicate) { //nolint: revive
// continue
} else if prevStage.Index() > stage.Index() {
return nil
Expand Down

0 comments on commit c620b15

Please sign in to comment.