]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: initialize AsyncConnection::port 3331/head
authorLoic Dachary <ldachary@redhat.com>
Fri, 9 Jan 2015 10:57:58 +0000 (11:57 +0100)
committerLoic Dachary <ldachary@redhat.com>
Fri, 9 Jan 2015 10:57:58 +0000 (11:57 +0100)
http://tracker.ceph.com/issues/10493 Fixes: #10493

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/msg/async/AsyncConnection.cc
src/test/msgr/test_msgr.cc

index 26552fffb847ecb664de0551bf8ee74a054e52f4..8087611b0ccf8e7e494ca7f5c00e735179f8516b 100644 (file)
@@ -185,7 +185,7 @@ static void alloc_aligned_buffer(bufferlist& data, unsigned len, unsigned off)
 AsyncConnection::AsyncConnection(CephContext *cct, AsyncMessenger *m, EventCenter *c)
   : Connection(cct, m), async_msgr(m), global_seq(0), connect_seq(0), peer_global_seq(0),
     out_seq(0), in_seq(0), in_seq_acked(0), state(STATE_NONE), state_after_send(0), sd(-1),
-    lock("AsyncConnection::lock"), open_write(false), keepalive(false),
+    port(-1), lock("AsyncConnection::lock"), open_write(false), keepalive(false),
     stop_lock("AsyncConnection::stop_lock"),
     got_bad_auth(false), authorizer(NULL), replacing(false), stopping(0),
     state_buffer(4096), state_offset(0), net(cct), center(c)
index 0ca708e3b90320da335ddd7e2d6a559e6e70f610..5a0200bfbc71e3c9c9effd2675545b97be562bea 100644 (file)
@@ -593,7 +593,6 @@ int main(int argc, char **argv) {
 
 /*
  * Local Variables:
- * compile-command: "cd ../.. ; make ceph_test_msgr && ./ceph_test_msgr
- *
+ * compile-command: "cd ../.. ; make -j4 unittest_msgr && valgrind --tool=memcheck ./unittest_msgr"
  * End:
  */