mirror of
https://github.com/minio/minio.git
synced 2025-03-31 09:43:43 -04:00
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:
parent
07d232c7b4
commit
7cc77eba45
@ -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…
x
Reference in New Issue
Block a user