From 34d7116ec2cc899d8339eea299bfaf55666a450f Mon Sep 17 00:00:00 2001 From: Pranith K Date: Fri, 24 Jun 2011 03:04:34 +0000 Subject: cluster/afr: set frame local before access wind Signed-off-by: Pranith Kumar K Signed-off-by: Anand Avati BUG: 3072 (Crash in afr_access_cbk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3072 --- xlators/cluster/afr/src/afr-inode-read.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xlators/cluster/afr/src/afr-inode-read.c b/xlators/cluster/afr/src/afr-inode-read.c index d2089db8e..66bf2f85d 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])) { -- cgit