mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
xl/fs: Return InvalidPart{} error for part ETag mismatch. (#4541)
Fixes #4539
This commit is contained in:
@@ -936,7 +936,7 @@ func (xl xlObjects) CompleteMultipartUpload(bucket string, object string, upload
|
||||
|
||||
// All parts should have same ETag as previously generated.
|
||||
if currentXLMeta.Parts[partIdx].ETag != part.ETag {
|
||||
return ObjectInfo{}, traceError(BadDigest{})
|
||||
return ObjectInfo{}, traceError(InvalidPart{})
|
||||
}
|
||||
|
||||
// All parts except the last part has to be atleast 5MB.
|
||||
|
||||
Reference in New Issue
Block a user