|
|
@ -63,12 +63,13 @@ func (xl XL) listOnlineDisks(volume, path string) (onlineDisks []StorageAPI, mda |
|
|
|
for _, err := range errs { |
|
|
|
for _, err := range errs { |
|
|
|
if err == errFileNotFound { |
|
|
|
if err == errFileNotFound { |
|
|
|
notFoundCount++ |
|
|
|
notFoundCount++ |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// If we have errors with file not found equal to the number of disks.
|
|
|
|
// If we have errors with file not found equal to the number of disks.
|
|
|
|
if notFoundCount == len(xl.storageDisks) { |
|
|
|
if notFoundCount > len(xl.storageDisks)-xl.readQuorum { |
|
|
|
return nil, xlMetaV1{}, false, errFileNotFound |
|
|
|
return nil, xlMetaV1{}, false, errFileNotFound |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
highestVersion := int64(0) |
|
|
|
highestVersion := int64(0) |
|
|
|
onlineDisks = make([]StorageAPI, len(xl.storageDisks)) |
|
|
|
onlineDisks = make([]StorageAPI, len(xl.storageDisks)) |
|
|
|
// List all the file versions from partsMetadata list.
|
|
|
|
// List all the file versions from partsMetadata list.
|
|
|
|