summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrishnan P <kp@gluster.com>2011-06-21 00:46:48 +0000
committerAnand Avati <avati@gluster.com>2011-06-22 08:41:15 -0700
commitadf106dd982b4060ebd5491813e54504c086d0c8 (patch)
treedab0114e4cefc4781b300021a5737302d96c4989
parenta64d1a8157859a0bdc6f8bdf94588319fc829b99 (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
-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);