summaryrefslogtreecommitdiffstats
path: root/tests/afr.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/afr.rc')
-rw-r--r--tests/afr.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/afr.rc b/tests/afr.rc
index 12cbd974cd7..f253e77561e 100644
--- a/tests/afr.rc
+++ b/tests/afr.rc
@@ -97,3 +97,11 @@ function afr_up_status()
local replica_id=$3
grep -E "^up = " $m/.meta/graphs/active/${v}-replicate-${replica_id}/private | cut -f2 -d'='
}
+
+function get_quorum_type()
+{
+ local m="$1"
+ local v="$2"
+ local repl_id="$3"
+ cat $m/.meta/graphs/active/$v-replicate-$repl_id/private|grep quorum-type|awk '{print $3}'
+}