summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrishnan P <kp@gluster.com>2011-06-21 00:26:18 +0000
committerAnand Avati <avati@gluster.com>2011-06-22 08:41:48 -0700
commit0fbb8b3f4ce21d7313cf409fce68f7ccd8e9c3ee (patch)
tree2833717c948cf89eeddb086b12489f2809d364a2
parente7e51d768d3dc861c03eab8c3fa817cc1a771770 (diff)
afr: bg self-heal must be off if self-heal-count=0.
Signed-off-by: Krishnan Parthasarathi <kp@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3036 (self-heal problem in replace-brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3036 BUG: 3036 (self-heal problem in replace-brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3036
-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 60492c3ae..dafa621dd 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.c
+++ b/xlators/cluster/afr/src/afr-self-heal-common.c
@@ -1598,12 +1598,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);