bucket.marker = pmaster_bucket->marker;
bucket.bucket_id = pmaster_bucket->bucket_id;
}
+ if (pmaster_num_shards) {
+ info.num_shards = *pmaster_num_shards;
+ } else {
+ info.num_shards = bucket_index_max_shards;
+ }
- r = init_bucket_index(bucket, bucket_index_max_shards);
+ r = init_bucket_index(bucket, info.num_shards);
if (r < 0)
return r;
info.index_type = rule_info.index_type;
info.swift_ver_location = swift_ver_location;
info.swift_versioning = (!swift_ver_location.empty());
- if (pmaster_num_shards) {
- info.num_shards = *pmaster_num_shards;
- } else {
- info.num_shards = bucket_index_max_shards;
- }
info.bucket_index_shard_hash_type = RGWBucketInfo::MOD;
info.requester_pays = false;
if (real_clock::is_zero(creation_time))