From b7d2dba8b655f174f810ba0aa9a4770e5cfaa609 Mon Sep 17 00:00:00 2001 From: hari gowtham Date: Mon, 5 Oct 2015 17:13:44 +0530 Subject: Tier/cli: number of bricks remains the same in v info --xml The number of bricks count remains one for the cold type. Actual result: 1 x 2 = 2 Expected result: 3 x 2 = 6 Change-Id: I31480a7808b248ef9ea805cb64f7663d44647ddf BUG: 1268822 Signed-off-by: hari gowtham Reviewed-on: http://review.gluster.org/12303 Tested-by: NetBSD Build System Reviewed-by: Dan Lambright Reviewed-by: Atin Mukherjee --- cli/src/cli-xml-output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 753966d7736..87bd0589bb9 100644 --- a/cli/src/cli-xml-output.c +++ b/cli/src/cli-xml-output.c @@ -2794,7 +2794,7 @@ cli_xml_output_vol_info (cli_local_t *local, dict_t *dict) } tier_vol_type = value[HOT_TYPE]; - value[hot_dist_count] = (value[HOT_REPLICA_COUNT] ? + hot_dist_count = (value[HOT_REPLICA_COUNT] ? value[HOT_REPLICA_COUNT] : 1); if ((value[HOT_TYPE] != GF_CLUSTER_TYPE_TIER) && (value[HOT_TYPE] > 0) && -- cgit