simplify MRF, converge it to regular healing (#17026)

This commit is contained in:
Harshavardhana
2023-04-19 07:47:42 -07:00
committed by GitHub
parent 8a81e317d6
commit 84f31ed45d
7 changed files with 65 additions and 197 deletions

View File

@@ -869,13 +869,8 @@ func (h *healSequence) healBucket(objAPI ObjectLayer, bucket string, bucketsOnly
if !h.settings.Recursive {
if h.object != "" {
// Check if an object named as the objPrefix exists,
// and if so heal it.
oi, err := objAPI.GetObjectInfo(h.ctx, bucket, h.object, ObjectOptions{})
if err == nil {
if err = h.healObject(bucket, h.object, oi.VersionID); err != nil {
return err
}
if err := h.healObject(bucket, h.object, ""); err != nil {
return err
}
}