mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
return error during part listing when no quorum (#8241)
This commit fixes a subtle bug that (probably) caused an issue affecting encrypted multipart objects. When a cluster has no quorum this bug causes `ListObjectParts` to return nil as error instead of a quorum error. Thanks to @harshavardhana for detecting this.
This commit is contained in:
parent
76df027264
commit
3064da7b08
@ -520,7 +520,7 @@ func (xl xlObjects) ListObjectParts(ctx context.Context, bucket, object, uploadI
|
||||
|
||||
reducedErr := reduceWriteQuorumErrs(ctx, errs, objectOpIgnoredErrs, writeQuorum)
|
||||
if reducedErr == errXLWriteQuorum {
|
||||
return result, toObjectErr(err, minioMetaMultipartBucket, uploadIDPath)
|
||||
return result, toObjectErr(reducedErr, minioMetaMultipartBucket, uploadIDPath)
|
||||
}
|
||||
|
||||
_, modTime := listOnlineDisks(storageDisks, partsMetadata, errs)
|
||||
|
Loading…
Reference in New Issue
Block a user