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
This commit is contained in:
Vikas Gorur 2009-11-24 08:45:05 +00:00 committed by Anand V. Avati
parent 3fe840d937
commit a63e189822

View File

@ -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);
}