From adf106dd982b4060ebd5491813e54504c086d0c8 Mon Sep 17 00:00:00 2001 From: Krishnan P Date: Tue, 21 Jun 2011 00:46:48 +0000 Subject: afr: bg self-heal must be off if self-heal-count=0. Signed-off-by: Krishnan Parthasarathi Signed-off-by: Anand Avati BUG: 3036 (self-heal problem in replace-brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3036 --- xlators/cluster/afr/src/afr-self-heal-common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators') 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); -- cgit