summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-common.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2018-07-02 10:39:56 +0530
committerRavishankar N <ravishankar@redhat.com>2018-07-03 12:48:56 +0000
commitce69fb659657a6d7ca9f5b44bab282533e3bfd26 (patch)
tree7e00b6489769d832add364953c17dc4926d594e8 /xlators/cluster/afr/src/afr-common.c
parenta585425aad5f07a406da26ba38c59fa0e5ad3036 (diff)
afr,ec: Print if the subvolume is up in statedump
fixes bz#1597156 Change-Id: I323eb9190e40b12df216698dcdba74a6d336beeb Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index 1e0c1a7b265..e2821f1b295 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -4904,6 +4904,7 @@ afr_priv_dump (xlator_t *this)
gf_proc_dump_write("quorum-type", "fixed");
gf_proc_dump_write("quorum-count", "%d", priv->quorum_count);
}
+ gf_proc_dump_write("up", "%u", afr_has_quorum (priv->child_up, this));
return 0;
}