From: lu.shasha Date: Tue, 9 May 2017 07:05:03 +0000 (+0800) Subject: rgw: when create_bucket use the same num_shards with info.num_shards X-Git-Tag: v12.0.3~33^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15010%2Fhead;p=ceph.git rgw: when create_bucket use the same num_shards with info.num_shards pr #14388 only fix the num_shards in BucketInfo, "init_bucket_index" function still use local num_shards Fixes: http://tracker.ceph.com/issues/19745 Signed-off-by: Shasha Lu --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 7069fe4cd987..eee86eb4f57c 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; }