summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-08-04 18:34:15 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-08-04 17:27:33 -0700
commitbd56475921ef36effb162161b4d6423d7ac8e3f0 (patch)
treedabaff1ca5aa8861e48c476bde93e7fa71f1feac
parent925534952d05f828113ec45ff5c60294b76ef190 (diff)
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 <avati@dev.gluster.com> BUG: 189 (segfault in server-lookup) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=189
-rw-r--r--xlators/protocol/server/src/server-protocol.c7
1 files changed, 4 insertions, 3 deletions
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{