From 566e0e2048fbfb5f7605d654fe0bdc30e8a34ec3 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 2 Jun 2020 15:27:03 -0700 Subject: [PATCH] allow deleting of dropped multiparts (#9753) bonus change trigger MRF heal when single offline disk is found, break out early. --- cmd/xl-v1-multipart.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/xl-v1-multipart.go b/cmd/xl-v1-multipart.go index 8cd8f173d..e60f6d2ce 100644 --- a/cmd/xl-v1-multipart.go +++ b/cmd/xl-v1-multipart.go @@ -48,7 +48,7 @@ func (xl xlObjects) checkUploadIDExists(ctx context.Context, bucket, object, upl // Removes part given by partName belonging to a mulitpart upload from minioMetaBucket func (xl xlObjects) removeObjectPart(bucket, object, uploadID string, partNumber int) { - curpartPath := pathJoin(bucket, object, uploadID, fmt.Sprintf("part.%d", partNumber)) + curpartPath := pathJoin(xl.getUploadIDDir(bucket, object, uploadID), fmt.Sprintf("part.%d", partNumber)) storageDisks := xl.getDisks() g := errgroup.WithNErrs(len(storageDisks)) @@ -731,6 +731,7 @@ func (xl xlObjects) CompleteMultipartUpload(ctx context.Context, bucket string, for i := 0; i < len(onlineDisks); i++ { if onlineDisks[i] == nil || storageDisks[i] == nil { xl.addPartialUpload(bucket, object) + break } }