mirror of
https://github.com/ceph/ceph
synced 2025-02-19 00:47:49 +00:00
osd/OSDMap: set pg[p]_num_target in build_simple*() methods
These are only used by unit tests and osdmaptool as far as I can tell. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
45d8d5dcf4
commit
93928ff029
@ -3809,6 +3809,8 @@ int OSDMap::build_simple_optioned(CephContext *cct, epoch_t e, uuid_d &fsid,
|
||||
pools[pool].object_hash = CEPH_STR_HASH_RJENKINS;
|
||||
pools[pool].set_pg_num(poolbase << pg_bits);
|
||||
pools[pool].set_pgp_num(poolbase << pgp_bits);
|
||||
pools[pool].set_pg_num_target(poolbase << pg_bits);
|
||||
pools[pool].set_pgp_num_target(poolbase << pgp_bits);
|
||||
pools[pool].last_change = epoch;
|
||||
pools[pool].application_metadata.insert(
|
||||
{pg_pool_t::APPLICATION_NAME_RBD, {}});
|
||||
|
Loading…
Reference in New Issue
Block a user