diff options
author | Sage Weil <sage@inktank.com> | 2013-05-31 21:16:54 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-31 21:17:07 -0700 |
commit | 9f1afe1a8e7906bdc54158a4813f011933f6a78f (patch) | |
tree | 34f283aab9de7b837f3ebe39d825745bfae95000 | |
parent | d5b67d49c87b4fe6a90cdd0bf4fac4f9d9377e81 (diff) | |
download | ceph-9f1afe1a8e7906bdc54158a4813f011933f6a78f.tar.gz |
mon: fix uninitialized fields in MMonHealth
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit d7e2ab1451e284cd4273cca47eec75e1d323f113)
-rw-r--r-- | src/messages/MMonHealth.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/messages/MMonHealth.h b/src/messages/MMonHealth.h index 2ef3cef519c..c6a09b140d1 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: |