From 4d8c682181822834f46adaa6afea029556a0bb59 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sun, 6 Dec 2009 04:41:02 +0000 Subject: protocol/server: fix bad reference to @inode in server_link_cbk when op_ret is -1, gf_log refers to @inode which can be NULL. fix this to refer to state->loc2.inode instead Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 448 (server_link_cbk refers to @inode when op_ret is -1) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=448 --- xlators/protocol/server/src/server-protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/protocol') diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c index 1f2cb7d06f1..7b51f9f2663 100644 --- a/xlators/protocol/server/src/server-protocol.c +++ b/xlators/protocol/server/src/server-protocol.c @@ -1610,7 +1610,7 @@ server_link_cbk (call_frame_t *frame, void *cookie, xlator_t *this, gf_log (state->bound_xl->name, GF_LOG_DEBUG, "%"PRId64": LINK (%"PRId64") %"PRId64"/%s ==> %"PRId64"/%s " " ==> %"PRId32" (%s)", - frame->root->unique, inode->ino, + frame->root->unique, state->loc2.inode->ino, state->loc2.parent->ino, state->loc2.name, state->loc.parent->ino, state->loc.name, -- cgit