diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-04-09 03:54:51 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-09 18:57:08 +0530 |
commit | fb034ba3036fadc7cf35edc5cae7481149a67ca0 (patch) | |
tree | 65b4266718238dd11275e477a384c9b3b87b9ef9 /xlators/cluster/afr/src/afr-self-heal-entry.c | |
parent | bfbcde78924fc5847b31ae56fe8d14ea52b60dfd (diff) |
Compulsorily do self heal if file sizes differ.
If file sizes differ, then compulsorily do self-heal. If no 'wise'
sources are found, then pick a 'fool' with the biggest file size.
If even 'fools' aren't found, pick the 'innocent' source with the
biggest file size.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-entry.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-entry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-entry.c b/xlators/cluster/afr/src/afr-self-heal-entry.c index 665dfb93628..3906b707e0c 100644 --- a/xlators/cluster/afr/src/afr-self-heal-entry.c +++ b/xlators/cluster/afr/src/afr-self-heal-entry.c @@ -1830,8 +1830,8 @@ afr_sh_entry_fix (call_frame_t *frame, xlator_t *this) afr_sh_print_pending_matrix (sh->pending_matrix, this); - afr_sh_mark_sources (sh->pending_matrix, sh->sources, - priv->child_count); + afr_sh_mark_sources (sh, priv->child_count, + AFR_SELF_HEAL_ENTRY); afr_sh_supress_errenous_children (sh->sources, sh->child_errno, priv->child_count); |