ostream& AsyncConnection::_conn_prefix(std::ostream *_dout) {
return *_dout << "-- " << async_msgr->get_myaddrs() << " >> "
<< *peer_addrs << " conn(" << this
- << (msgr2 ? " msgr2" : " legacy")
+ << (msgr2 ? " msgr2=" : " legacy=")
+ << protocol.get()
<< " :" << port
<< " s=" << get_state_name(state)
<< " l=" << policy.lossy
#define dout_prefix _conn_prefix(_dout)
ostream &ProtocolV1::_conn_prefix(std::ostream *_dout) {
return *_dout << "--1- " << messenger->get_myaddrs().legacy_addr() << " >> "
- << connection->peer_addrs->legacy_addr() << " conn("
- << connection << (connection->msgr2 ? " msgr2" : " legacy")
+ << connection->peer_addrs->legacy_addr()
+ << " conn("
+ << connection << " " << this
<< " :" << connection->port << " s=" << get_state_name(state)
<< " pgs=" << peer_global_seq << " cs=" << connect_seq
<< " l=" << connection->policy.lossy << ").";
// AsyncConnection here)
ProtocolV1 *exproto = dynamic_cast<ProtocolV1 *>(existing->protocol.get());
+ ldout(cct,10) << __func__ << " existing=" << existing << " exproto="
+ << exproto << dendl;
assert(exproto->proto_type == 1);
if (!exproto) {
#define dout_prefix _conn_prefix(_dout)
ostream &ProtocolV2::_conn_prefix(std::ostream *_dout) {
return *_dout << "--2- " << messenger->get_myaddrs() << " >> "
- << *connection->peer_addrs << " conn("
- << connection << (connection->msgr2 ? " msgr2" : " legacy")
+ << *connection->peer_addrs
+ << " conn("
+ << connection << " " << this
<< " :" << connection->port << " s=" << get_state_name(state)
<< " pgs=" << peer_global_seq << " cs=" << connect_seq
<< " l=" << connection->policy.lossy << ").";
// AsyncConnection here)
ProtocolV2 *exproto = dynamic_cast<ProtocolV2 *>(existing->protocol.get());
+ ldout(cct,10) << __func__ << " existing=" << existing << " exproto="
+ << exproto << dendl;
assert(exproto->proto_type == 2);
if (!exproto) {