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 <cbodley@redhat.com>
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) {