]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: abort_bucket_multiparts() ignores individual NoSuchUpload errors 24110/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 14 Sep 2018 18:56:23 +0000 (14:56 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 14 Sep 2018 19:05:07 +0000 (15:05 -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>
src/rgw/rgw_multi.cc

index d2af62ae8ca75fe5a025a1ab1fdd21997847e688..a2fc09ff4780131e9dd49c0af89a7be186e1ffd6 100644 (file)
@@ -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++;