diff options
author | Pranith K <pranithk@gluster.com> | 2011-06-24 03:01:39 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-01 01:27:07 -0700 |
commit | 08b33281723a42864bbae07faab8bbacdeea986e (patch) | |
tree | 5991cd330e01ab910405e6520f3b211da563e872 /xlators/cluster | |
parent | 3aaa84fcbcacdb4001c78303a794d8c6b9743d0e (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/cluster')
-rw-r--r-- | xlators/cluster/afr/src/afr-inode-read.c | 2 |
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 dd832ffe7..56ec61ff7 100644 --- a/xlators/cluster/afr/src/afr-inode-read.c +++ b/xlators/cluster/afr/src/afr-inode-read.c @@ -134,6 +134,8 @@ afr_access (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t mask) 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])) { |