From 80d0c49125c67fcc0aab48cce7ef895dabf1d006 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 29 Mar 2012 21:07:06 +0530 Subject: cluster/afr: Fix the split-brain log Change-Id: Ia4937dee009af7c945ec590a827c982b0e6ad307 BUG: 787653 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.com/3039 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Vijay Bellur --- xlators/cluster/afr/src/afr-self-heal-common.c | 7 ++++--- 1 file changed, 4 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 441d5d116..039758408 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -912,9 +912,10 @@ afr_sh_missing_entries_done (call_frame_t *frame, xlator_t *this) afr_sh_reset (frame, this); if (local->govinda_gOvinda || sh->op_failed) { - gf_log (this->name, GF_LOG_INFO, - "split brain found, aborting selfheal of %s", - local->loc.path); + if (local->govinda_gOvinda) + gf_log (this->name, GF_LOG_INFO, + "split brain found, aborting selfheal of %s", + local->loc.path); sh->op_failed = 1; sh->completion_cbk (frame, this); } else { -- cgit