From: Danny Al-Gaaf Date: Wed, 17 Feb 2016 15:09:11 +0000 (+0100) Subject: msg/xio/XioConnection.h: init some member variables in ctor X-Git-Tag: v10.1.0~312^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F7680%2Fhead;p=ceph.git msg/xio/XioConnection.h: init some member variables in ctor Signed-off-by: Danny Al-Gaaf --- diff --git a/src/msg/xio/XioConnection.h b/src/msg/xio/XioConnection.h index 845d4ab09007..383f57f23f65 100644 --- a/src/msg/xio/XioConnection.h +++ b/src/msg/xio/XioConnection.h @@ -96,7 +96,9 @@ private: uint32_t in_seq, out_seq_acked; // atomic, got receipt atomic_t out_seq; // atomic - lifecycle() : state(lifecycle::INIT), in_seq(0), out_seq(0) {} + lifecycle() : state(lifecycle::INIT), reconnects(0), connect_seq(0), + peer_global_seq(0), in_seq(0), out_seq_acked(0), + out_seq(0) {} void set_in_seq(uint32_t seq) { in_seq = seq; @@ -143,11 +145,18 @@ private: uint32_t flags; explicit CState(XioConnection* _xcon) - : xcon(_xcon), + : features(0), + authorizer(NULL), + xcon(_xcon), protocol_version(0), session_state(INIT), startup_state(IDLE), + reconnects(0), + connect_seq(0), + global_seq(0), + peer_global_seq(0), in_seq(0), + out_seq_acked(0), out_seq(0), flags(FLAG_NONE) {}