mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
rgw: fix layout init in create_bucket
Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
8d7077ccad
commit
5e2514dc7f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user