if ((send_ctr <= uint32_t(xio_qdepth_low_mark())) &&
(1 /* XXX memory <= memory low-water mark */)) {
cstate.state_up_ready(XioConnection::CState::OP_FLAG_NONE);
+ ldout(msgr->cct,2) << "on_msg_delivered xcon: " << xmsg->xcon <<
+ " session: " << session << " up_ready from flow_controlled" << dendl;
}
}
void XioConnection::msg_send_fail(XioMsg *xmsg, int code)
{
- ldout(msgr->cct,4) << "xio_send_msg FAILED " << &xmsg->req_0.msg << " code=" << code <<
+ ldout(msgr->cct,2) << "xio_send_msg FAILED xcon: " << this <<
+ " xmsg: " << &xmsg->req_0.msg << " code=" << code <<
" (" << xio_strerror(code) << ")" << dendl;
/* return refs taken for each xio_msg */
xmsg->put_msg_refs();
void XioConnection::msg_release_fail(struct xio_msg *msg, int code)
{
- ldout(msgr->cct,4) << "xio_release_msg FAILED " << msg << "code=" << code <<
+ ldout(msgr->cct,2) << "xio_release_msg FAILED xcon: " << this <<
+ " xmsg: " << msg << "code=" << code <<
" (" << xio_strerror(code) << ")" << dendl;
} /* msg_release_fail */
make_pair("fatal", 0),
make_pair("error", 0),
make_pair("warn", 1),
- make_pair("info", 5),
- make_pair("debug", 10),
+ make_pair("info", 1),
+ make_pair("debug", 2),
make_pair("trace", 20)
};
case XIO_SESSION_CONNECTION_ESTABLISHED_EVENT:
xcon = static_cast<XioConnection*>(event_data->conn_user_context);
- ldout(cct,4) << "connection established " << event_data->conn
+ ldout(cct,2) << "connection established " << event_data->conn
<< " session " << session << " xcon " << xcon << dendl;
/* notify hook */
}
break;
case XIO_SESSION_CONNECTION_ERROR_EVENT:
- ldout(cct,4) << xio_session_event_types[event_data->event]
+ ldout(cct,2) << xio_session_event_types[event_data->event]
<< " user_context " << event_data->conn_user_context << dendl;
/* informational (Eyal)*/
break;
/* XXXX pre-merge of session startup negotiation ONLY! */
xcon->cstate.state_up_ready(XioConnection::CState::OP_FLAG_NONE);
+ ldout(cct,2) << "new connection xcon: " << xcon <<
+ " up_ready on session " << xcon->session << dendl;
+
return xcon->get(); /* nref +1 */
}
} /* get_connection */