From 5d813bb5fa005d15de47ba0cde0af7bda6bd9995 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 5 Mar 2012 14:17:57 +0530 Subject: 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 BUG: 799337 Reviewed-on: http://review.gluster.com/2864 Tested-by: Gluster Build System Reviewed-by: M S Vishwanath Bhat Reviewed-by: Vijay Bellur --- rpc/rpc-lib/src/rpc-clnt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rpc') diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c index 61d28bcac..01a1c24e7 100644 --- a/rpc/rpc-lib/src/rpc-clnt.c +++ b/rpc/rpc-lib/src/rpc-clnt.c @@ -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); -- cgit