From: Casey Bodley Date: Fri, 14 Sep 2018 18:56:23 +0000 (-0400) Subject: rgw: abort_bucket_multiparts() ignores individual NoSuchUpload errors X-Git-Tag: v13.2.3~135^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24388%2Fhead;p=ceph.git rgw: abort_bucket_multiparts() ignores individual NoSuchUpload errors if the bucket index lists multipart meta objects that don't actually exist in rados, this error prevents the bucket from being deleted Fixes: http://tracker.ceph.com/issues/35986 Signed-off-by: Casey Bodley (cherry picked from commit 764d6a8599eb5ea5a6382fea57e4b28f97e26d93) --- diff --git a/src/rgw/rgw_multi.cc b/src/rgw/rgw_multi.cc index 20fd44a0305..d0f802690f6 100644 --- a/src/rgw/rgw_multi.cc +++ b/src/rgw/rgw_multi.cc @@ -285,7 +285,7 @@ int abort_bucket_multiparts(RGWRados *store, CephContext *cct, RGWBucketInfo& bu if (!mp.from_meta(key.name)) continue; ret = abort_multipart_upload(store, cct, &obj_ctx, bucket_info, mp); - if (ret < 0) { + if (ret < 0 && ret != -ENOENT && ret != -ERR_NO_SUCH_UPLOAD) { return ret; } num_deleted++;