From 546390e845166ffcfcce6e47e105a453c3ac565c Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 4 Aug 2009 18:56:52 +0000 Subject: server-lookup: added path info from header to log message in the previous commit, the path info was removed to prevent the segfault, which instead could have been provided from request header directly. More specific information is required for debugging, and hence adding the path log. Signed-off-by: Anand V. Avati BUG: 189 (segfault in server-lookup) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=189 --- xlators/protocol/server/src/server-protocol.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c index 2516756b..86c8be96 100644 --- a/xlators/protocol/server/src/server-protocol.c +++ b/xlators/protocol/server/src/server-protocol.c @@ -3442,9 +3442,10 @@ server_lookup (call_frame_t *frame, xlator_t *bound_xl, &xattr_req); if (ret < 0) { gf_log (bound_xl->name, GF_LOG_ERROR, - "%"PRId64": failed to unserialize " - "request buffer to dictionary", - frame->root->unique); + "%"PRId64": %s (%"PRId64"): failed to " + "unserialize req-buffer to dictionary", + frame->root->unique, state->path, + state->ino); free (req_dictbuf); goto fail; } else{ -- cgit