heal: Enable removing dangling delete markers (#10688)

master
Anis Elleuch 4 years ago committed by GitHub
parent f1cc16e788
commit db2241066b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      cmd/erasure-healing.go

@ -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.

Loading…
Cancel
Save