From 4e90ca853b774f64c6adde73a62ed2649bda5eab Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Wed, 8 Apr 2009 02:30:18 -0700 Subject: Fix minor bug in afr_open_cbk. Signed-off-by: Anand V. Avati --- xlators/cluster/afr/src/afr.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c index 54a1d71af8f..8c3bdc06ad8 100644 --- a/xlators/cluster/afr/src/afr.c +++ b/xlators/cluster/afr/src/afr.c @@ -810,12 +810,16 @@ afr_open_cbk (call_frame_t *frame, void *cookie, ret = afr_fd_ctx_set (this, fd); if (ret < 0) { + gf_log (this->name, GF_LOG_ERROR, + "could not set fd ctx for fd=%p", + fd); + local->op_ret = -1; local->op_errno = -ret; - - AFR_STACK_UNWIND (frame, local->op_ret, - local->op_errno, local->fd); } + + AFR_STACK_UNWIND (frame, local->op_ret, + local->op_errno, local->fd); } } -- cgit