From b966c0d368324f603cb14504b98e1f2a14222306 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 4 Jun 2018 16:35:36 -0500 Subject: [PATCH] msg/async: fix some debug prefixes Signed-off-by: Sage Weil --- src/msg/async/AsyncConnection.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index e1d9e287db96b..52e0b940e3e0c 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -33,7 +33,7 @@ #undef dout_prefix #define dout_prefix _conn_prefix(_dout) ostream& AsyncConnection::_conn_prefix(std::ostream *_dout) { - return *_dout << "-- " << async_msgr->get_myaddr() << " >> " + return *_dout << "-- " << async_msgr->get_myaddrs() << " >> " << peer_addrs << " conn(" << this << " :" << port << " s=" << get_state_name(state) @@ -1886,8 +1886,8 @@ int AsyncConnection::send_message(Message *m) { FUNCTRACE(async_msgr->cct); lgeneric_subdout(async_msgr->cct, ms, - 1) << "-- " << async_msgr->get_myaddr() << " --> " - << get_peer_addr() << " -- " + 1) << "-- " << async_msgr->get_myaddrs() << " --> " + << get_peer_addrs() << " -- " << *m << " -- " << m << " con " << m->get_connection().get() << dendl; @@ -1904,7 +1904,7 @@ int AsyncConnection::send_message(Message *m) else if (m->get_type() == CEPH_MSG_OSD_OPREPLY) OID_EVENT_TRACE_WITH_MSG(m, "SEND_MSG_OSD_OPREPLY_BEGIN", true); - if (async_msgr->get_myaddr() == get_peer_addr()) { //loopback connection + if (async_msgr->get_myaddrs() == get_peer_addrs()) { //loopback connection ldout(async_msgr->cct, 20) << __func__ << " " << *m << " local" << dendl; std::lock_guard l(write_lock); if (can_write != WriteStatus::CLOSED) { -- 2.39.5