Skip to content

Commit

Permalink
Fixup missing parameter
Browse files Browse the repository at this point in the history
Issue: CLDSRV-570
  • Loading branch information
KillianG committed Nov 18, 2024
1 parent 1e875f2 commit 4b578f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/api/apiUtils/object/abortMultipartUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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,
Expand Down

0 comments on commit 4b578f2

Please sign in to comment.