summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-04-08 02:30:18 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-08 15:03:15 +0530
commit4e90ca853b774f64c6adde73a62ed2649bda5eab (patch)
tree125137139c2da133b12f21b8300b5d26e9228788 /xlators
parent225e86b37492e5004eb51498b46471d74f30841d (diff)
Fix minor bug in afr_open_cbk.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr.c10
1 files 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);
}
}