]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix uninitialized fields in MMonHealth
authorSage Weil <sage@inktank.com>
Sat, 1 Jun 2013 04:16:54 +0000 (21:16 -0700)
committerSage Weil <sage@inktank.com>
Sat, 1 Jun 2013 04:16:54 +0000 (21:16 -0700)
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
src/messages/MMonHealth.h

index 2ef3cef519cc46c2d1b8613046467e8bf0d09090..c6a09b140d144fad722d7cefbcec4c5078bf7945 100644 (file)
@@ -36,14 +36,11 @@ struct MMonHealth : public MMonQuorumService
   DataStats data_stats;
 
   MMonHealth() : MMonQuorumService(MSG_MON_HEALTH, HEAD_VERSION) { }
-  MMonHealth(uint32_t type) :
-    MMonQuorumService(MSG_MON_HEALTH, HEAD_VERSION),
-    service_type(type)
-  { }
-  MMonHealth(uint32_t type, int op) :
+  MMonHealth(uint32_t type, int op = 0) :
     MMonQuorumService(MSG_MON_HEALTH, HEAD_VERSION),
     service_type(type),
-    service_op(op)
+    service_op(op),
+    flags(0)
   { }
 
 private: