Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/storage/metadata/mongoclient/MongoClientInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1973,14 +1973,14 @@ class MongoClientInterface {
const masterKey = formatMasterKey(objName, params.vFormat);
this.internalDeleteObject(c, bucketName, masterKey, {}, params, log, err => {
if (err) {
// Should not return an error when no object is found
if (err.is.NoSuchKey) {
return cb(null);
}

log.error(
'deleteObjectNoVer: error deleting object with no version',
{ error: err.message, bucket: bucketName, key: objName });
return cb(errors.InternalError);
return cb(err);
}
return cb(null);
}, originOp);
Expand Down
Loading