From 07ed48398e41df1b65202f3d2e0be6f2c3ca8ceb Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 15 Apr 2014 12:40:57 +0530 Subject: cluster/afr: trigger self-heals even when they are set to off. When attempt-self-heal is set to true, trigger data/metadata/entry self-heals even when they are disabled. This is useful for gluster volume heal info to report them even when metadata-self-heal entry-self-heal, data-self-heal are set to off. Change-Id: Idc3f0d5d049c875b4f975248fef56ea2238da47c BUG: 1039544 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/7480 Tested-by: Gluster Build System Reviewed-by: Ravishankar N Reviewed-by: Vijay Bellur --- xlators/cluster/afr/src/afr-self-heal-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c') diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index 6f82761b33d..ab9e44b41e0 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -2307,6 +2307,7 @@ afr_self_heal_local_init (afr_local_t *l, xlator_t *this) this->name, priv->child_count); if (ret) goto out; + lc->attempt_self_heal = l->attempt_self_heal; out: if (ret) { @@ -2474,7 +2475,7 @@ afr_self_heal (call_frame_t *frame, xlator_t *this, inode_t *inode) sh->sh_type_in_action = AFR_SELF_HEAL_INVALID; FRAME_SU_DO (sh_frame, afr_local_t); - if (sh->do_missing_entry_self_heal || sh->do_gfid_self_heal) { + if (afr_can_start_missing_entry_gfid_self_heal (local, priv)) { afr_self_heal_missing_entries (sh_frame, this); } else { loc = &sh_local->loc; -- cgit