]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix layout init in create_bucket
authorCasey Bodley <cbodley@redhat.com>
Wed, 15 Apr 2020 14:04:27 +0000 (10:04 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 15 Apr 2020 14:04:27 +0000 (10:04 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rados.cc

index 4f3e2f0c2e17f5a1f9750b1149918c7dec2d79d3..a6dbb57d97120e98a830d232f28941bdc5fba944 100644 (file)
@@ -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();