diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 7069fe4cd98..eee86eb4f57 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -5452,7 +5452,7 @@ int RGWRados::create_bucket(RGWUserInfo& owner, rgw_bucket& bucket, info.quota = *pquota_info; } - int r = init_bucket_index(info, bucket_index_max_shards); + int r = init_bucket_index(info, info.num_shards); if (r < 0) { return r; }