From 335555d256d444f4952ce239168f72b393370f01 Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Fri, 5 May 2017 22:19:36 +0530 Subject: afr: include quorum type and count when dumping afr priv Dump the client quorum type ('auto' or 'fixed'). If it is 'fixed', also dump the quorum-count. This information will be available in the client statedump and in //.meta/graphs/active/testvol-replicate-X/private. Change-Id: Idbd6e2acbd622d4e6cfabf511e649a6da0e42384 BUG: 1448804 Signed-off-by: Ravishankar N Reviewed-on: https://review.gluster.org/17196 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Pranith Kumar Karampuri --- xlators/cluster/afr/src/afr-common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xlators/cluster/afr/src/afr-common.c') diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index 17943d7baae..5ed4dab5f62 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -4522,6 +4522,12 @@ afr_priv_dump (xlator_t *this) gf_proc_dump_write("background-self-heal-count", "%d", priv->background_self_heal_count); gf_proc_dump_write("healers", "%d", priv->healers); + if (priv->quorum_count == AFR_QUORUM_AUTO) { + gf_proc_dump_write ("quorum-type", "auto"); + } else { + gf_proc_dump_write("quorum-type", "fixed"); + gf_proc_dump_write("quorum-count", "%d", priv->quorum_count); + } return 0; } -- cgit