Skip to content

Commit 36541ef

Browse files
committed
rgw: RGWAbortMultipart maps NoSuchKey to NoSuchUpload
Signed-off-by: Casey Bodley <[email protected]>
1 parent bae9ed8 commit 36541ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rgw/rgw_op.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7040,6 +7040,9 @@ void RGWAbortMultipart::execute(optional_yield y)
70407040
auto serializer = meta_obj->get_serializer(this, "RGWCompleteMultipart");
70417041
op_ret = serializer->try_lock(this, dur, y);
70427042
if (op_ret < 0) {
7043+
if (op_ret == -ENOENT) {
7044+
op_ret = -ERR_NO_SUCH_UPLOAD;
7045+
}
70437046
return;
70447047
}
70457048
op_ret = upload->abort(this, s->cct, y);

0 commit comments

Comments
 (0)