rgw: fix layout init in create_bucket

Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2020-04-15 10:04:27 -04:00
parent 8d7077ccad
commit 5e2514dc7f

View 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();