From 64132200590a9310ea221524e13db8a09bd89313 Mon Sep 17 00:00:00 2001 From: Anuradha Date: Fri, 23 Jan 2015 10:51:11 +0530 Subject: afr : Change in heal info split-brain command Implementation of heal info split-brain command with glfs-heal. Change-Id: I233eb790de6eb5468a4cbb12a1cef0f97db2a1d2 BUG: 1183019 Signed-off-by: Anuradha Reviewed-on: http://review.gluster.org/9459 Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Tested-by: Pranith Kumar Karampuri --- tests/volume.rc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 2fd07cd8745..36f1350b9bc 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -210,6 +210,11 @@ function afr_get_pending_heal_count { gluster volume heal $vol info | grep "Number of entries" | awk '{ sum+=$4} END {print sum}' } +function afr_get_split_brain_count { + local vol=$1 + gluster volume heal $vol info split-brain | grep "Number of entries in split-brain" | awk '{ sum+=$6} END {print sum}' +} + function afr_get_index_path { local brick_path=$1 echo "$brick_path/.glusterfs/indices/xattrop" -- cgit