Merge pull request #12793 from zhangsw/fix-rgw-abortmultipart

rgw: AbortMultipart request returns NoSuchUpload error if the meta obj doesn't exist

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2017-03-14 12:19:00 -04:00 committed by GitHub
commit 67ffcf895d

View File

@ -5104,7 +5104,7 @@ void RGWAbortMultipart::execute()
// and also remove the metadata obj
op_ret = del_op.delete_obj();
if (op_ret == -ENOENT) {
op_ret = -ERR_NO_SUCH_BUCKET;
op_ret = -ERR_NO_SUCH_UPLOAD;
}
}