summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-data.c
diff options
context:
space:
mode:
authorVenkatesh Somyajula <vsomyaju@redhat.com>2013-01-23 12:07:12 +0530
committerAnand Avati <avati@redhat.com>2013-02-03 11:48:01 -0800
commit454c6c0fde1f0788c4a1a7506c434a9b7d822e85 (patch)
treeec8ddf828d07a94905cab3118bdc1810995f17ca /xlators/cluster/afr/src/afr-self-heal-data.c
parent06a411edbeb84284c7564d8f82e8c2a77054360d (diff)
cluster/afr: added logging of changelog for split-brain in glustershd.log file
Change-Id: Iaf119f839cb2113b8f8efb7bf7636d471b6541bf BUG: 866440 Signed-off-by: Venkatesh Somyajula <vsomyaju@redhat.com> Reviewed-on: http://review.gluster.org/4385 Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-data.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-data.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c
index 9694436879b..69e650620e9 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);