summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2013-08-08 15:22:10 +0530
committerAnand Avati <avati@redhat.com>2013-08-08 21:05:06 -0700
commitff38e3e0289439dd9e4521567bf1bfa9d184b5ef (patch)
tree7c375fa551096d95a542e5adc5b4a5828f83aa5d /xlators/cluster
parent5fb1714c64660c69e51301f61b63e63931f85227 (diff)
cluster/afr: Unwind frame on error in readdir[p]
Change-Id: I5701bf115e0aa1adb4fb52f5418534910a2268d4 BUG: 994959 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/5531 Reviewed-by: Vijay Bellur <vbellur@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr-dir-read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-read.c b/xlators/cluster/afr/src/afr-dir-read.c
index 2bb707853fe..799c55919b8 100644
--- a/xlators/cluster/afr/src/afr-dir-read.c
+++ b/xlators/cluster/afr/src/afr-dir-read.c
@@ -410,9 +410,9 @@ afr_readdir_cbk (call_frame_t *frame, void *cookie,
local = frame->local;
afr_readdir_filter_trash_dir (entries, local->fd);
- AFR_STACK_UNWIND (readdir, frame, op_ret, op_errno, entries, NULL);
out:
+ AFR_STACK_UNWIND (readdir, frame, op_ret, op_errno, entries, NULL);
return 0;
}
@@ -429,9 +429,9 @@ afr_readdirp_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
local = frame->local;
afr_readdir_filter_trash_dir (entries, local->fd);
- AFR_STACK_UNWIND (readdirp, frame, op_ret, op_errno, entries, NULL);
out:
+ AFR_STACK_UNWIND (readdirp, frame, op_ret, op_errno, entries, NULL);
return 0;
}