]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: handle correctly when there is no bucket or it doesn't have resharding flag
authorOrit Wasserman <owasserm@redhat.com>
Thu, 20 Apr 2017 14:50:09 +0000 (17:50 +0300)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 5 Jun 2017 20:17:35 +0000 (13:17 -0700)
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
src/rgw/rgw_reshard.cc

index ab7bc8c9c038b137cdd55a818e8de22948c76685..909802579bb8db0a4af8abeab03c262ed89c5dea 100644 (file)
@@ -311,7 +311,7 @@ int RGWReshard::block_while_resharding(const string& bucket_instance_oid)
 
     ret = cls_rgw_get_bucket_resharding(io_ctx, bucket_instance_oid,
                                        entry, resharding);
-    if (ret < 0) {
+    if (ret < 0 && ret != -ENOENT && ret != -ENODATA) {
       ldout(cct, 0) << "RGWReshard::" << __func__ << " ERROR: failed to get bucket resharding :"  <<
        cpp_strerror(-ret)<< dendl;
       return ret;