summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr
diff options
context:
space:
mode:
authorKrishnan P <kp@gluster.com>2011-06-20 00:56:10 +0000
committerAnand Avati <avati@gluster.com>2011-06-20 00:20:53 -0700
commit1748b0c7925fa2165cbf11c4aab90e07bff7d4cb (patch)
tree4c437dd62068a1b852c7cc4d51afb018051c2b7d /xlators/cluster/afr
parentb64dd21f05016065e0b825db62da87981554df88 (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
Diffstat (limited to 'xlators/cluster/afr')
-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 a0a2b5cf3d4..dfea2cd58c3 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.c
+++ b/xlators/cluster/afr/src/afr-self-heal-common.c
@@ -1596,12 +1596,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);