diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-04-15 12:40:57 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-04-28 09:43:24 -0700 |
commit | 07ed48398e41df1b65202f3d2e0be6f2c3ca8ceb (patch) | |
tree | 61223ce6be2394606058b8403e0a70e40a6df9f0 /xlators/cluster/afr/src/afr-self-heal-data.c | |
parent | 115b4093a44f6e23c28e5a382f82e72ddf73d97c (diff) |
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 <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/7480
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-data.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-data.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c index e5ca84292fa..5c53f6a6a06 100644 --- a/xlators/cluster/afr/src/afr-self-heal-data.c +++ b/xlators/cluster/afr/src/afr-self-heal-data.c @@ -1704,17 +1704,6 @@ afr_sh_non_reg_lock_success (call_frame_t *frame, xlator_t *this) return 0; } -gf_boolean_t -afr_can_start_data_self_heal (afr_self_heal_t *sh, afr_private_t *priv) -{ - if (sh->force_confirm_spb) - return _gf_true; - if (sh->do_data_self_heal && - afr_data_self_heal_enabled (priv->data_self_heal)) - return _gf_true; - return _gf_false; -} - int afr_self_heal_data (call_frame_t *frame, xlator_t *this) { @@ -1728,7 +1717,7 @@ afr_self_heal_data (call_frame_t *frame, xlator_t *this) sh->sh_type_in_action = AFR_SELF_HEAL_DATA; - if (afr_can_start_data_self_heal (sh, priv)) { + if (afr_can_start_data_self_heal (local, priv)) { afr_set_self_heal_status (sh, AFR_SELF_HEAL_STARTED); ret = afr_inodelk_init (&local->internal_lock.inodelk[1], priv->sh_domain, priv->child_count); |