|
|
|
@ -137,6 +137,10 @@ func (xl xlObjects) listObjectsHeal(bucket, prefix, marker, delimiter string, ma |
|
|
|
|
result.Prefixes = append(result.Prefixes, objInfo.Name) |
|
|
|
|
continue |
|
|
|
|
} |
|
|
|
|
// Check if the current object needs healing
|
|
|
|
|
nsMutex.RLock(bucket, objInfo.Name) |
|
|
|
|
partsMetadata, errs := readAllXLMetadata(xl.storageDisks, bucket, objInfo.Name) |
|
|
|
|
if xlShouldHeal(partsMetadata, errs) { |
|
|
|
|
result.Objects = append(result.Objects, ObjectInfo{ |
|
|
|
|
Name: objInfo.Name, |
|
|
|
|
ModTime: objInfo.ModTime, |
|
|
|
@ -144,6 +148,8 @@ func (xl xlObjects) listObjectsHeal(bucket, prefix, marker, delimiter string, ma |
|
|
|
|
IsDir: false, |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
nsMutex.RUnlock(bucket, objInfo.Name) |
|
|
|
|
} |
|
|
|
|
return result, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|