mirror of
https://github.com/minio/minio.git
synced 2025-04-01 02:03:42 -04:00
heal: Enable removing dangling delete markers (#10688)
This commit is contained in:
parent
f1cc16e788
commit
db2241066b
@ -711,7 +711,8 @@ func isObjectDangling(metaArr []FileInfo, errs []error, dataErrs []error) (valid
|
|||||||
}
|
}
|
||||||
|
|
||||||
if validMeta.Deleted {
|
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.
|
// We couldn't find any valid meta we are indeed corrupted, return true right away.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user