From 454c6c0fde1f0788c4a1a7506c434a9b7d822e85 Mon Sep 17 00:00:00 2001 From: Venkatesh Somyajula Date: Wed, 23 Jan 2013 12:07:12 +0530 Subject: cluster/afr: added logging of changelog for split-brain in glustershd.log file Change-Id: Iaf119f839cb2113b8f8efb7bf7636d471b6541bf BUG: 866440 Signed-off-by: Venkatesh Somyajula Reviewed-on: http://review.gluster.org/4385 Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Jeff Darcy Tested-by: Gluster Build System --- xlators/cluster/afr/src/afr-self-heal-data.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'xlators/cluster/afr/src/afr-self-heal-data.c') diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c index 969443687..69e650620 100644 --- a/xlators/cluster/afr/src/afr-self-heal-data.c +++ b/xlators/cluster/afr/src/afr-self-heal-data.c @@ -711,11 +711,8 @@ afr_sh_data_fxattrop_fstat_done (call_frame_t *frame, xlator_t *this) } if (nsources == -1) { - gf_log (this->name, GF_LOG_ERROR, - "Unable to self-heal contents of '%s' (possible " - "split-brain). Please delete the file from all but " - "the preferred subvolume.", local->loc.path); - + afr_sh_print_split_brain_log (sh->pending_matrix, this, + local->loc.path); afr_set_split_brain (this, sh->inode, DONT_KNOW, SPB); afr_sh_data_fail (frame, this); -- cgit