From bd56475921ef36effb162161b4d6423d7ac8e3f0 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 4 Aug 2009 18:34:15 +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(-) (limited to 'xlators') diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c index cbdd48841..2178fcbbb 100644 --- a/xlators/protocol/server/src/server-protocol.c +++ b/xlators/protocol/server/src/server-protocol.c @@ -3474,9 +3474,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