}
auto zone_svc = static_cast<rgw::sal::RadosStore*>(store)->svc()->zone;
+ if (!zone_svc->can_reshard()) {
+ const auto& zonegroup = zone_svc->get_zonegroup();
+ std::cerr << "The zonegroup '" << zonegroup.get_name() << "' does not "
+ "have the resharding feature enabled." << std::endl;
+ return ENOTSUP;
+ }
if (!RGWBucketReshard::can_reshard(bucket->get_info(), zone_svc) &&
!yes_i_really_mean_it) {
std::cerr << "Bucket '" << bucket->get_name() << "' already has too many "
"from previous reshards that peer zones haven't finished syncing. "
"Resharding is not recommended until the old generations sync, but "
"you can force a reshard with --yes-i-really-mean-it." << std::endl;
- return -EINVAL;
+ return EINVAL;
}
RGWBucketReshard br(static_cast<rgw::sal::RadosStore*>(store),