From da47fe9a400dbc811327d4fb8e754c47dbdeaccc Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Thu, 25 Mar 2010 02:07:07 +0000 Subject: cluster/afr: UNWIND if opendir returns an error. Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 756 (simaltaneous rm -rf hangs the clients) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=756 --- xlators/cluster/afr/src/afr-dir-read.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators') diff --git a/xlators/cluster/afr/src/afr-dir-read.c b/xlators/cluster/afr/src/afr-dir-read.c index 1396e1c0b7e..d0eadebd9bd 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); } } -- cgit