heal: Avoid objects created after the heal disk start time (#17323)

This commit is contained in:
Anis Eleuch
2023-05-31 21:10:45 +01:00
committed by GitHub
parent c9e26401fa
commit 9ef7eda33a

View File

@@ -313,6 +313,10 @@ func (er *erasureObjects) healErasureSet(ctx context.Context, buckets []string,
var versionNotFound int
for _, version := range fivs.Versions {
// Ignore a version with a modtime newer than healing start
if version.ModTime.After(tracker.Started) {
continue
}
if err := bgSeq.queueHealTask(healSource{
bucket: bucket,
object: version.Name,