diff options
author | Ravishankar N <ravishankar@redhat.com> | 2015-11-25 16:42:20 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2015-11-25 23:27:58 -0800 |
commit | 4ebd70ce34d4d3825f850f118933069b9ea2924f (patch) | |
tree | 27c7269f8c7ad1ae89a9ac036ddeb634f1a7b5a7 /xlators/mgmt | |
parent | 27ff5e14e2577c671f5890ec845ec04e8046ec52 (diff) |
cli: Indicate which brick of the replica is the arbiter
Backport of http://review.gluster.org/#/c/12747/
Enhances the cli output for arbiter volumes as requested in the BZ.
Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Change-Id: I28cc34d7d19def043d54291cede25a58dbcc5051
BUG: 1283570
Reviewed-on: http://review.gluster.org/12748
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 1e54e3bad48..1296267578a 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -366,6 +366,12 @@ glusterd_add_tier_volume_detail_to_dict (glusterd_volinfo_t *volinfo, goto out; memset (key, 0, sizeof (key)); + snprintf (key, 256, "volume%d.cold_arbiter_count", count); + ret = dict_set_int32 (dict, key, volinfo->arbiter_count); + if (ret) + goto out; + + memset (key, 0, sizeof (key)); snprintf (key, 256, "volume%d.cold_disperse_count", count); ret = dict_set_int32 (dict, key, volinfo->tier_info.cold_disperse_count); |