]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
xio: remove duplicate assignment of peer addr 8025/head
authorRoi Dayan <roid@mellanox.com>
Wed, 2 Mar 2016 07:58:45 +0000 (09:58 +0200)
committerRoi Dayan <roid@mellanox.com>
Thu, 10 Mar 2016 13:33:32 +0000 (15:33 +0200)
Signed-off-by: Roi Dayan <roid@mellanox.com>
src/msg/xio/XioConnection.cc

index 799a87b4c4ea44beed2937a9067e542f76882c93..40069fad0cf8d05ef5d680f36553d4d035bf4485 100644 (file)
@@ -93,9 +93,7 @@ XioConnection::XioConnection(XioMessenger *m, XioConnection::type _type,
   cstate(this)
 {
   pthread_spin_init(&sp, PTHREAD_PROCESS_PRIVATE);
-  if (xio_conn_type == XioConnection::ACTIVE)
-    peer_addr = peer.addr;
-  peer_type = peer.name.type();
+  set_peer_type(peer.name.type());
   set_peer_addr(peer.addr);
 
   Messenger::Policy policy;