summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-10-27 06:09:46 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-28 01:46:23 -0700
commit78d281d6026ad1ebe8cc65c4396055902369ea89 (patch)
tree038179e222515f417bf33e75b2ee94c1b416a841 /xlators/cluster/afr
parent5674c41b3ea4eac8fe8f4f74bd978699bc847332 (diff)
cluster/afr: Set local->fd in fsync.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 145 (NFSv3 related additions to 2.1 task list) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=145
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r--xlators/cluster/afr/src/afr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index ea69cc816d4..c9a46f28a14 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -1229,6 +1229,7 @@ afr_fsync (call_frame_t *frame, xlator_t *this, fd_t *fd,
call_count = local->call_count;
frame->local = local;
+ local->fd = fd_ref (fd);
local->cont.fsync.ino = fd->inode->ino;
for (i = 0; i < priv->child_count; i++) {