From: Casey Bodley Date: Mon, 1 Feb 2021 17:02:44 +0000 (-0500) Subject: radosgw-admin: try reshard even if bucket is resharding X-Git-Tag: v18.0.0~787^2~129 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=122da8f14a1dae247a5f2f62a3a6e219a9c9de8f;p=ceph.git radosgw-admin: try reshard even if bucket is resharding allow reshard in case a previous reshard failed. if the reshard is actually still in progress, we'll fail to get the reshard lock Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index ae12cc9a15f7..b6460e13464a 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -2928,13 +2928,6 @@ int check_reshard_bucket_params(rgw::sal::RadosStore* store, return ret; } - if ((*bucket)->get_info().layout.resharding != rgw::BucketReshardState::None) { - // if in_progress or done then we have an old BucketInfo - cerr << "ERROR: the bucket is currently undergoing resharding and " - "cannot be added to the reshard list at this time" << std::endl; - return -EBUSY; - } - int num_source_shards = rgw::current_num_shards((*bucket)->get_info().layout); if (num_shards <= num_source_shards && !yes_i_really_mean_it) {