summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-04-08 13:14:44 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-04-08 12:57:17 -0700
commit059c8b23e1f19f9cfcd6aa2c2235afc032bc5d34 (patch)
tree32337576da254d007d29ed651a71e607e513ec24
parent36ee95ad812bfe781e443cef0825e1ead12fdb7d (diff)
afr: afr_fsetattr - send proper inode pointer to afr_read_child()
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 814 (replicate complains of invalid inode in afr_read_child()) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=814
-rw-r--r--xlators/cluster/afr/src/afr-inode-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-inode-write.c b/xlators/cluster/afr/src/afr-inode-write.c
index 32e93e6..a7751e6 100644
--- a/xlators/cluster/afr/src/afr-inode-write.c
+++ b/xlators/cluster/afr/src/afr-inode-write.c
@@ -1077,7 +1077,7 @@ afr_fsetattr_wind_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
local = frame->local;
priv = this->private;
- read_child = afr_read_child (this, local->loc.inode);
+ read_child = afr_read_child (this, local->fd->inode);
LOCK (&frame->lock);
{