From 4ce64a190b4ff36985e785e574c077d39796feea Mon Sep 17 00:00:00 2001 From: "lu.shasha" Date: Tue, 9 May 2017 15:05:03 +0800 Subject: [PATCH] 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 --- src/rgw/rgw_rados.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3