mirror of
https://github.com/minio/minio.git
synced 2026-11-20 23:06:17 +00:00
ObjectLayer/GetObject: Should return the right error value. Fix done in FS and XL. (#2133)
fixes #2117
This commit is contained in:
1 parent
5102a5877e
commit
ae80f8ca35
4 files changed
+105
-1
No files matched your search
@@ -67,6 +67,11 @@ func (xl xlObjects) GetObject(bucket, object string, startOffset int64, length i
|
||||
return toObjectErr(errXLReadQuorum, bucket, object)
|
||||
}
|
||||
|
||||
// If all the disks returned error, we return error.
|
||||
if err := reduceErrs(errs); err != nil {
|
||||
return toObjectErr(err, bucket, object)
|
||||
}
|
||||
|
||||
// List all online disks.
|
||||
onlineDisks, highestVersion, err := xl.listOnlineDisks(metaArr, errs)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user