xl/fs: Return InvalidPart{} error for part ETag mismatch. (#4541)

Fixes #4539
This commit is contained in:
Harshavardhana
2017-06-17 11:20:39 -07:00
committed by GitHub
parent e99244be02
commit a86c2e2ce1
6 changed files with 6 additions and 6 deletions

View File

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