summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-xml-output.c
diff options
context:
space:
mode:
authorhari gowtham <hgowtham@redhat.com>2015-10-05 17:13:44 +0530
committerAtin Mukherjee <amukherj@redhat.com>2015-10-06 20:51:27 -0700
commitb7d2dba8b655f174f810ba0aa9a4770e5cfaa609 (patch)
tree45b11335fe12940a4dfde38dbf1c81a19790d126 /cli/src/cli-xml-output.c
parent229b4d8391b5abf8da662d02d9a5ccab37eb6ab5 (diff)
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: <numberOfBricks>1 x 2 = 2</numberOfBricks> Expected result: <numberOfBricks>3 x 2 = 6</numberOfBricks> Change-Id: I31480a7808b248ef9ea805cb64f7663d44647ddf BUG: 1268822 Signed-off-by: hari gowtham <hgowtham@redhat.com> Reviewed-on: http://review.gluster.org/12303 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Dan Lambright <dlambrig@redhat.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'cli/src/cli-xml-output.c')
-rw-r--r--cli/src/cli-xml-output.c2
1 files changed, 1 insertions, 1 deletions
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) &&