From: Casey Bodley Date: Mon, 16 Dec 2024 15:04:29 +0000 (-0500) Subject: rgw: RGWAbortMultipart maps NoSuchKey to NoSuchUpload X-Git-Tag: v18.2.5~158^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F61133%2Fhead;p=ceph.git rgw: RGWAbortMultipart maps NoSuchKey to NoSuchUpload Signed-off-by: Casey Bodley (cherry picked from commit 36541efe49cdc7b3d4f58c7d6d6e254135491792) --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 5c36a20874f3..b0e4db16fa52 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -6742,6 +6742,9 @@ void RGWAbortMultipart::execute(optional_yield y) auto serializer = meta_obj->get_serializer(this, "RGWCompleteMultipart"); op_ret = serializer->try_lock(this, dur, y); if (op_ret < 0) { + if (op_ret == -ENOENT) { + op_ret = -ERR_NO_SUCH_UPLOAD; + } return; } op_ret = upload->abort(this, s->cct);