rpc: print xid of the rpcreq corresponding to frame being bailed out.

Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>

BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
This commit is contained in:
Raghavendra G 2010-09-14 04:09:52 +00:00 committed by Vijay Bellur
parent 9446e8d3ec
commit df331224c5

View File

@ -186,13 +186,13 @@ call_bail (void *data)
strftime (frame_sent, 32, "%Y-%m-%d %H:%M:%S", &frame_sent_tm);
gf_log (conn->trans->name, GF_LOG_ERROR,
"bailing out frame type(%s) op(%s(%d)) sent = %s. "
"timeout = %d",
"bailing out frame type(%s) op(%s(%d)) xid = %u "
"sent = %s. timeout = %d",
trav->rpcreq->prog->progname,
(trav->rpcreq->prog->procnames) ?
trav->rpcreq->prog->procnames[trav->rpcreq->procnum] :
"--",
trav->rpcreq->procnum, frame_sent,
trav->rpcreq->procnum, trav->rpcreq->xid, frame_sent,
conn->frame_timeout);
trav->rpcreq->rpc_status = -1;