From 1249030962a177d077e76d346d66ef6061b818ed Mon Sep 17 00:00:00 2001 From: hari Date: Mon, 28 Dec 2015 16:04:50 +0530 Subject: Cli/tier: separating services from cold bricks in xml fix: The cold bricks tag included the processes also. The patch has removed the processes from being mentioned inside the cold brick tag and are mentioned below by closing the cold brick tag after the brick count. Previous output: 192.168.1.102 /data/gluster/b3 8c088528-e1aee3b2b40f 1 49157 49157 N/A 1160 NFS Server localhost 8c088528-e1aee3b2b40f 0 N/A N/A N/A -1 Expected output: 192.168.1.102 /data/gluster/b3 8c088528-e1aee3b2b40f 1 49157 49157 N/A 1160 NFS Server localhost 8c088528-e1aee3b2b40f 0 N/A N/A N/A -1 Change-Id: Ieccd017d7b2edb16786323f1a76402f020bdfb0d BUG: 1294497 Signed-off-by: hari Reviewed-on: http://review.gluster.org/13101 Smoke: Gluster Build System Tested-by: hari gowtham NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Dan Lambright --- cli/src/cli-xml-output.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'cli/src/cli-xml-output.c') diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c index 0f501782f25..439c3047e31 100644 --- a/cli/src/cli-xml-output.c +++ b/cli/src/cli-xml-output.c @@ -1753,12 +1753,11 @@ cli_xml_output_vol_status (cli_local_t *local, dict_t *dict) ret = xmlTextWriterEndElement (local->writer); XML_RET_CHECK_AND_GOTO (ret, out); - } - - /* */ - if (type == GF_CLUSTER_TYPE_TIER && i >= hot_brick_count) { - ret = xmlTextWriterEndElement (local->writer); - XML_RET_CHECK_AND_GOTO (ret, out); + /* */ + if (type == GF_CLUSTER_TYPE_TIER && i == brick_index_max) { + ret = xmlTextWriterEndElement (local->writer); + XML_RET_CHECK_AND_GOTO (ret, out); + } } /* Tasks are only present when a normal volume status call is done on a -- cgit