rpc-clnt: print xid of the saved frames getting unwind

so that one can match the corresponding submit failed errors in
brick logs

Change-Id: I4422805a20c251aeffb51d63572c251176b2620c
Signed-off-by: Amar Tumballi <amarts@redhat.com>
BUG: 799337
Reviewed-on: http://review.gluster.com/2864
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: M S Vishwanath Bhat <vishwanath@gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
This commit is contained in:
Amar Tumballi 2012-03-05 14:17:57 +05:30 committed by Vijay Bellur
parent 6756245b15
commit 5d813bb5fa

View File

@ -373,12 +373,13 @@ saved_frames_unwind (struct saved_frames *saved_frames)
gf_log_callingfn (trav->rpcreq->conn->trans->name,
GF_LOG_ERROR,
"forced unwinding frame type(%s) op(%s(%d)) "
"called at %s",
"called at %s (xid=0x%ux)",
trav->rpcreq->prog->progname,
((trav->rpcreq->prog->procnames) ?
trav->rpcreq->prog->procnames[trav->rpcreq->procnum]
: "--"),
trav->rpcreq->procnum, timestr);
trav->rpcreq->procnum, timestr,
trav->rpcreq->xid);
saved_frames->count--;
clnt = rpc_clnt_ref (trav->rpcreq->conn->rpc_clnt);