summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-03-25 02:07:07 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-25 05:49:15 -0700
commitda47fe9a400dbc811327d4fb8e754c47dbdeaccc (patch)
tree3c9a4c7febb9079db6b82e702e9eade52ee71161
parent868a0d4c1a2fa0493695abb3e29b6832516ea8de (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
-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 1396e1c0b..d0eadebd9 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);
}
}