]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/xio/XioConnection.h: init some member variables in ctor 7680/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 17 Feb 2016 15:09:11 +0000 (16:09 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 19 Feb 2016 11:51:11 +0000 (12:51 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/msg/xio/XioConnection.h

index 845d4ab0900706d30b08081ebc18f76bccf55520..383f57f23f655afe92db2a578183a6727eae488b 100644 (file)
@@ -96,7 +96,9 @@ private:
     uint32_t in_seq, out_seq_acked; // atomic<uint64_t>, got receipt
     atomic_t out_seq; // atomic<uint32_t>
 
-    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) {}