mirror of
https://github.com/pgsty/minio.git
synced 2026-11-03 06:12:03 +03:00
For missing parts reply back as InvalidPart{}
This commit is contained in:
@@ -286,7 +286,7 @@ func (donut API) CompleteMultipartUpload(bucket, key, uploadID string, data io.R
|
||||
object, ok := donut.multiPartObjects[uploadID].Get(parts.Part[i].PartNumber)
|
||||
if ok == false {
|
||||
donut.lock.Unlock()
|
||||
return ObjectMetadata{}, iodine.New(errors.New("missing part: "+strconv.Itoa(parts.Part[i].PartNumber)), nil)
|
||||
return ObjectMetadata{}, iodine.New(InvalidPart{}, nil)
|
||||
}
|
||||
size += int64(len(object))
|
||||
calcMD5Bytes := md5.Sum(object)
|
||||
|
||||
Reference in New Issue
Block a user