heal: Enable removing dangling delete markers (#10688)

This commit is contained in:
Anis Elleuch
2020-10-15 21:06:40 +01:00
committed by GitHub
parent f1cc16e788
commit db2241066b

View File

@@ -711,7 +711,8 @@ func isObjectDangling(metaArr []FileInfo, errs []error, dataErrs []error) (valid
}
if validMeta.Deleted {
return validMeta, false
// notFoundParts is ignored since a delete marker does not have any parts
return validMeta, corruptedErasureMeta+notFoundErasureMeta > len(errs)/2
}
// We couldn't find any valid meta we are indeed corrupted, return true right away.