summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2011-06-24 03:04:34 +0000
committerAnand Avati <avati@gluster.com>2011-07-01 01:26:36 -0700
commit34d7116ec2cc899d8339eea299bfaf55666a450f (patch)
tree51f6addcb1c98d167ddf17d3b188bc21f24719a4 /xlators
parent4784318f02af5f113c7917f96807838588ab1c0c (diff)
cluster/afr: set frame local before access wind
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3072 (Crash in afr_access_cbk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3072
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-inode-read.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-inode-read.c b/xlators/cluster/afr/src/afr-inode-read.c
index d2089db8ed4..66bf2f85ded 100644
--- a/xlators/cluster/afr/src/afr-inode-read.c
+++ b/xlators/cluster/afr/src/afr-inode-read.c
@@ -136,6 +136,8 @@ afr_access (call_frame_t *frame, xlator_t *this,
ALLOC_OR_GOTO (local, afr_local_t, out);
+ frame->local = local;
+
read_child = afr_read_child (this, loc->inode);
if ((read_child >= 0) && (priv->child_up[read_child])) {