summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-data.c
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-11-24 08:45:05 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-24 06:39:53 -0800
commita63e189822a777b450eeaeda8622cdb0e5e7cb1d (patch)
tree080ae2ac1ef628b6cf8e5e4adb24096955b944f7 /xlators/cluster/afr/src/afr-self-heal-data.c
parent3fe840d93730f1f7feef053e58dfbc40f99cae04 (diff)
cluster/afr: Set read-child = source regardless of foreground/background self-heal
Signed-off-by: Vikas Gorur <vikas@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-data.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c
index 8c092522c9e..34fe181ea06 100644
--- a/xlators/cluster/afr/src/afr-self-heal-data.c
+++ b/xlators/cluster/afr/src/afr-self-heal-data.c
@@ -821,8 +821,9 @@ afr_sh_data_fix (call_frame_t *frame, xlator_t *this)
sh->sources[i] = 0;
}
+ afr_set_read_child (this, local->loc.inode, sh->source);
+
if (sh->background) {
- afr_set_read_child (this, local->loc.inode, sh->source);
sh->unwind (frame, this);
}