]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: abort_bucket_multiparts() ignores individual NoSuchUpload errors 24389/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 14 Sep 2018 18:56:23 +0000 (14:56 -0400)
committerPrashant D <pdhange@redhat.com>
Wed, 3 Oct 2018 00:13:51 +0000 (20:13 -0400)
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 <cbodley@redhat.com>
(cherry picked from commit 764d6a8599eb5ea5a6382fea57e4b28f97e26d93)

Conflicts:
src/rgw/rgw_multi.cc : Resolved in abort_bucket_multiparts

src/rgw/rgw_multi.cc

index d455f9b8f8fb13a8b3757990bc908e5e364505d4..8e1d3ee80efc4b5a807b6c4583653a058366dd1d 100644 (file)
@@ -288,7 +288,7 @@ int abort_bucket_multiparts(RGWRados *store, CephContext *cct, RGWBucketInfo& bu
           continue;
         entry.obj = obj;
         ret = abort_multipart_upload(store, cct, &obj_ctx, bucket_info, entry.mp);
-        if (ret < 0) {
+        if (ret < 0 && ret != -ENOENT && ret != -ERR_NO_SUCH_UPLOAD) {
           return ret;
         }
         num_deleted++;