From: Sage Weil Date: Sat, 1 Jun 2013 04:16:54 +0000 (-0700) Subject: mon: fix uninitialized fields in MMonHealth X-Git-Tag: v0.64~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d7e2ab1451e284cd4273cca47eec75e1d323f113;p=ceph.git mon: fix uninitialized fields in MMonHealth Backport: cuttlefish Signed-off-by: Sage Weil --- diff --git a/src/messages/MMonHealth.h b/src/messages/MMonHealth.h index 2ef3cef519cc..c6a09b140d14 100644 --- a/src/messages/MMonHealth.h +++ b/src/messages/MMonHealth.h @@ -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: