Skip to content

Commit c533b56

Browse files
fix
1 parent 9ce8bf8 commit c533b56

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

index/scorch/merge.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,14 +438,12 @@ func (s *Scorch) planMergeAtSnapshot(ctrlMsg *mergerCtrl, ourSnapshot *IndexSnap
438438
atomic.StoreUint64(&s.stats.MaxFileMergeZapTime, fileMergeZapTime)
439439
}
440440
if err != nil {
441-
s.unmarkIneligibleForRemoval(batch.newFilename)
442441
atomic.AddUint64(&s.stats.TotFileMergePlanTasksErr, 1)
443442
return err
444443
}
445444

446445
batch.new, err = s.segPlugin.OpenUsing(path, s.segmentConfig)
447446
if err != nil {
448-
s.unmarkIneligibleForRemoval(batch.newFilename)
449447
atomic.AddUint64(&s.stats.TotFileMergePlanTasksErr, 1)
450448
return err
451449
}

0 commit comments

Comments
 (0)