string job_id;
int num_shards = 0;
+ bool num_shards_specified = false;
int max_concurrent_ios = 32;
uint64_t orphan_stale_secs = (24 * 3600);
cerr << "ERROR: failed to parse num shards: " << err << std::endl;
return EINVAL;
}
+ num_shards_specified = true;
} else if (ceph_argparse_witharg(args, i, &val, "--max-concurrent-ios", (char*)NULL)) {
max_concurrent_ios = (int)strict_strtol(val.c_str(), 10, &err);
if (!err.empty()) {
return EINVAL;
}
+ if (!num_shards_specified) {
+ cerr << "ERROR: --num-shards not specified" << std::endl;
+ return EINVAL;
+ }
+
RGWBucketInfo bucket_info;
map<string, bufferlist> attrs;
int ret = init_bucket(tenant, bucket_name, bucket_id, bucket_info, bucket, &attrs);