]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: init pg_pool_t::pg_autoscale_mode in ctor
authorKefu Chai <kchai@redhat.com>
Sun, 25 Aug 2019 04:08:39 +0000 (12:08 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 27 Aug 2019 04:41:58 +0000 (12:41 +0800)
so its value is determined

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/osd_types.h

index 14edf5df8fa818fa7f754b729ed9daa8d5d54018..6b9511fefb8a55e5d8ec1d679012b3d94a579c96 100644 (file)
@@ -1356,7 +1356,7 @@ struct pg_pool_t {
   __u8 size = 0, min_size = 0;  ///< number of osds in each pg
   __u8 crush_rule = 0;          ///< crush placement rule
   __u8 object_hash = 0;         ///< hash mapping object name to ps
-  pg_autoscale_mode_t pg_autoscale_mode;
+  pg_autoscale_mode_t pg_autoscale_mode = pg_autoscale_mode_t::UNKNOWN;
 
 private:
   __u32 pg_num = 0, pgp_num = 0;  ///< number of pgs