erasure: Remove prefix based listing support on ListMultipartUploads (#5248)

Previously we have removed this support under FS on #4996,
deprecate this on erasure coded backend as well to simplify
our multipart support.
This commit is contained in:
Harshavardhana
2017-11-30 15:58:46 -08:00
committed by GitHub
parent fc3cf97b81
commit 59749a2b85
3 changed files with 48 additions and 214 deletions
+4
View File
@@ -167,6 +167,10 @@ func listMultipartUploadIDs(bucketName, objectName, uploadIDMarker string, count
// Read `uploads.json`.
uploadsJSON, err := readUploadsJSON(bucketName, objectName, disk)
if err != nil {
switch errors.Cause(err) {
case errFileNotFound, errFileAccessDenied:
return nil, true, nil
}
return nil, false, err
}
index := 0