XL/Healing: errDiskNotFound is the only pardonable error in xlShouldHeal. (#2586)

This is so that we try to heal a file for all the "bad" cases except when the disk is down.
master
Krishna Srinivas 8 years ago committed by Harshavardhana
parent 07d232c7b4
commit 7cc77eba45
  1. 4
      cmd/xl-v1-healing.go

@ -135,10 +135,10 @@ func xlShouldHeal(partsMetadata []xlMetaV1, errs []error) bool {
modTime := commonTime(listObjectModtimes(partsMetadata, errs)) modTime := commonTime(listObjectModtimes(partsMetadata, errs))
for index := range partsMetadata { for index := range partsMetadata {
if errs[index] == errDiskNotFound { if errs[index] == errDiskNotFound {
return true continue
} }
if errs[index] != nil { if errs[index] != nil {
continue return true
} }
if modTime != partsMetadata[index].Stat.ModTime { if modTime != partsMetadata[index].Stat.ModTime {
return true return true

Loading…
Cancel
Save