summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c
index 5a5326ee3c7..6b26f2d7819 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.c
+++ b/xlators/cluster/afr/src/afr-self-heal-common.c
@@ -1578,12 +1578,12 @@ afr_self_heal (call_frame_t *frame, xlator_t *this)
LOCK (&priv->lock);
{
if (priv->background_self_heals_started
- > priv->background_self_heal_count) {
+ < priv->background_self_heal_count) {
+ priv->background_self_heals_started++;
- local->self_heal.background = _gf_false;
} else {
- priv->background_self_heals_started++;
+ local->self_heal.background = _gf_false;
}
}
UNLOCK (&priv->lock);