summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-03-25 01:50:58 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-25 05:49:07 -0700
commit0b3a225f4b0de4943c6e69eca296b322a9af52bf (patch)
tree691856aa2f26a38c92a9b0f3c13edeb2ca57148e /xlators
parent08d746def4b21d20153395ff1f061e833b06cd4d (diff)
cluster/afr: UNWIND if opendir returns an error.
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 756 (simaltaneous rm -rf hangs the clients) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=756
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-dir-read.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-read.c b/xlators/cluster/afr/src/afr-dir-read.c
index 065221e1d74..91b9850b39b 100644
--- a/xlators/cluster/afr/src/afr-dir-read.c
+++ b/xlators/cluster/afr/src/afr-dir-read.c
@@ -261,6 +261,9 @@ afr_opendir_cbk (call_frame_t *frame, void *cookie,
AFR_STACK_UNWIND (opendir, frame, local->op_ret,
local->op_errno, local->fd);
}
+ } else {
+ AFR_STACK_UNWIND (opendir, frame, local->op_ret,
+ local->op_errno, local->fd);
}
}