From 4b578f247aebd44247027b365c0d192a2fdef9e9 Mon Sep 17 00:00:00 2001 From: KillianG Date: Mon, 18 Nov 2024 13:55:18 +0100 Subject: [PATCH] Fixup missing parameter Issue: CLDSRV-570 --- lib/api/apiUtils/object/abortMultipartUpload.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/api/apiUtils/object/abortMultipartUpload.js b/lib/api/apiUtils/object/abortMultipartUpload.js index 1b8f48db88..9aaefd22c7 100644 --- a/lib/api/apiUtils/object/abortMultipartUpload.js +++ b/lib/api/apiUtils/object/abortMultipartUpload.js @@ -92,9 +92,9 @@ function abortMultipartUpload(authInfo, bucketName, objectKey, uploadId, log, skipDataDelete); }); }, - function deleteObjectMetadata(mpuBucket, storedParts, destBucket, objectMD, next) { + function deleteObjectMetadata(mpuBucket, storedParts, destBucket, objectMD, skipDataDelete, next) { if (!objectMD || metadataValMPUparams.uploadId !== objectMD.uploadId) { - return next(null, mpuBucket, storedParts, destBucket, objectMD); + return next(null, mpuBucket, storedParts, destBucket, objectMD, skipDataDelete); } // In case there has been an error during cleanup after a complete MPU // (e.g. failure to delete MPU MD in shadow bucket), @@ -110,7 +110,7 @@ function abortMultipartUpload(authInfo, bucketName, objectKey, uploadId, log, if (err) { log.error('error deleting object metadata', { error: err }); } - return next(err, mpuBucket, storedParts, destBucket, objectMD); + return next(err, mpuBucket, storedParts, destBucket, objectMD, skipDataDelete); }); }, function deleteData(mpuBucket, storedParts, destBucket, objectMD,