XL: Abortmultipart should update uploads.json properly. (#1757)

This commit is contained in:
Harshavardhana 2016-05-25 04:39:06 -07:00 committed by Harshavardhana
parent a9e778f460
commit a4771265cf

View File

@ -463,6 +463,9 @@ func (xl xlObjects) abortMultipartUploadCommon(bucket, object, uploadID string)
uploadIDs.Uploads = append(uploadIDs.Uploads[:uploadIDIdx], uploadIDs.Uploads[uploadIDIdx+1:]...)
}
if len(uploadIDs.Uploads) > 0 {
if err = updateUploadJSON(bucket, object, uploadIDs, xl.storageDisks...); err != nil {
return err
}
return nil
}
}