From 9e0c2c9d5e9b4f5df644911e29be4a611e0d2d42 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 back port of : http://review.gluster.org/#/c/12303/1 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 Change-Id: Ie533bddcc5c7a518c1d6d942e73258f3610cca33 BUG: 1269344 Signed-off-by: hari gowtham Reviewed-on: http://review.gluster.org/12307 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Atin Mukherjee --- cli/src/cli-xml-output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') 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