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.
This commit is contained in:
Krishna Srinivas 2016-09-01 00:12:57 +05:30 committed by Harshavardhana
parent 07d232c7b4
commit 7cc77eba45
1 changed files with 2 additions and 2 deletions

View File

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