mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
do not return an error in AbortMultipartUpload() (#18135)
returning an error is a bit undefined in AWS S3 as it may return an error or not depending on the time from AbortMultipartUpload().
This commit is contained in:
@@ -1248,7 +1248,11 @@ func (er erasureObjects) CompleteMultipartUpload(ctx context.Context, bucket str
|
||||
}
|
||||
}
|
||||
|
||||
defer er.deleteAll(context.Background(), minioMetaMultipartBucket, uploadIDPath)
|
||||
defer func() {
|
||||
if err == nil {
|
||||
er.deleteAll(context.Background(), minioMetaMultipartBucket, uploadIDPath)
|
||||
}
|
||||
}()
|
||||
|
||||
// Rename the multipart object to final location.
|
||||
onlineDisks, versionsDisparity, err := renameData(ctx, onlineDisks, minioMetaMultipartBucket, uploadIDPath,
|
||||
|
||||
Reference in New Issue
Block a user