mirror of
https://github.com/minio/minio.git
synced 2025-11-29 21:33:31 -05:00
erasure: listOnlineDisks should return errFileNotFound for errReadQuorum. (#1573)
Fixes #1571
This commit is contained in:
@@ -191,11 +191,14 @@ func getMultipartObjectInfo(storage StorageAPI, bucket, object string) (info Mul
|
||||
offset := int64(0)
|
||||
r, err := storage.ReadFile(bucket, pathJoin(object, multipartMetaFile), offset)
|
||||
if err != nil {
|
||||
return
|
||||
return MultipartObjectInfo{}, err
|
||||
}
|
||||
decoder := json.NewDecoder(r)
|
||||
err = decoder.Decode(&info)
|
||||
return
|
||||
if err != nil {
|
||||
return MultipartObjectInfo{}, err
|
||||
}
|
||||
return info, nil
|
||||
}
|
||||
|
||||
// GetObjectInfo - get object info.
|
||||
|
||||
Reference in New Issue
Block a user