diff options
Diffstat (limited to 'tests/afr.rc')
-rw-r--r-- | tests/afr.rc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/afr.rc b/tests/afr.rc index bdf4075a233..50f80703f0d 100644 --- a/tests/afr.rc +++ b/tests/afr.rc @@ -89,3 +89,11 @@ function count_index_entries() { ls $1/.glusterfs/indices/xattrop | wc -l } + +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}' +} |