summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-12-06 04:41:02 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-06 02:30:17 -0800
commit4d8c682181822834f46adaa6afea029556a0bb59 (patch)
treef8ec4f3d934f4d6d8a034fcca1bbdd04188f28c3 /xlators/protocol
parent9cedbb537f648a38606d14c425caa952dd5d0049 (diff)
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 <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> 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
Diffstat (limited to 'xlators/protocol')
-rw-r--r--xlators/protocol/server/src/server-protocol.c2
1 files changed, 1 insertions, 1 deletions
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,