From: Casey Bodley Date: Wed, 15 Apr 2020 14:04:27 +0000 (-0400) Subject: rgw: fix layout init in create_bucket X-Git-Tag: v16.1.0~2522^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5e2514dc7f4e2294e0238311609d5bf106ec8775;p=ceph.git rgw: fix layout init in create_bucket Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 4f3e2f0c2e17..a6dbb57d9712 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -2219,7 +2219,7 @@ int RGWRados::create_bucket(const RGWUserInfo& owner, rgw_bucket& bucket, } else { info.layout.current_index.layout.normal.num_shards = bucket_index_max_shards; } - info.layout.current_index.layout.normal.num_shards = RGWBucketInfo::MOD; + info.layout.current_index.layout.normal.hash_type = rgw::BucketHashType::Mod; info.requester_pays = false; if (real_clock::is_zero(creation_time)) { info.creation_time = ceph::real_clock::now();