erasure: listOnlineDisks should return errFileNotFound for errReadQuorum. (#1573)

Fixes #1571
This commit is contained in:
Harshavardhana
2016-05-10 00:10:34 -07:00
parent 0db3218d5d
commit 5f0ca64346
2 changed files with 10 additions and 6 deletions

View File

@@ -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.