|
|
e7a346 |
From 261a0b3feb520f7992dc026856b4b200670900ab Mon Sep 17 00:00:00 2001
|
|
|
e7a346 |
From: Sanju Rakonde <srakonde@redhat.com>
|
|
|
e7a346 |
Date: Sun, 13 May 2018 21:03:12 +0530
|
|
|
e7a346 |
Subject: [PATCH 271/271] cli: Fix for gluster volume info --xml
|
|
|
e7a346 |
|
|
|
e7a346 |
Problem: gluster volume info --xml is showing same uuid to all
|
|
|
e7a346 |
the bricks of a tier volume.
|
|
|
e7a346 |
|
|
|
e7a346 |
Solution: While iterating over hot/cold bricks of a tier volume, use
|
|
|
e7a346 |
correct iterator.
|
|
|
e7a346 |
|
|
|
e7a346 |
>Fixes: bz#1577627
|
|
|
e7a346 |
>Change-Id: Icf6a9c2a10b9da453abc262a57b7884d6638e3ed
|
|
|
e7a346 |
>Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
|
|
|
e7a346 |
|
|
|
e7a346 |
upstream patch: https://review.gluster.org/#/c/20015/
|
|
|
e7a346 |
|
|
|
e7a346 |
BUG: 1572043
|
|
|
e7a346 |
Change-Id: Icf6a9c2a10b9da453abc262a57b7884d6638e3ed
|
|
|
e7a346 |
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
|
|
|
e7a346 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/138786
|
|
|
e7a346 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
e7a346 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
e7a346 |
---
|
|
|
e7a346 |
cli/src/cli-xml-output.c | 4 ++--
|
|
|
e7a346 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
e7a346 |
|
|
|
e7a346 |
diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c
|
|
|
e7a346 |
index 29ee81b..a709ed5 100644
|
|
|
e7a346 |
--- a/cli/src/cli-xml-output.c
|
|
|
e7a346 |
+++ b/cli/src/cli-xml-output.c
|
|
|
e7a346 |
@@ -2942,7 +2942,7 @@ cli_xml_output_vol_info (cli_local_t *local, dict_t *dict)
|
|
|
e7a346 |
|
|
|
e7a346 |
memset (key, 0, sizeof (key));
|
|
|
e7a346 |
snprintf (key, sizeof (key),
|
|
|
e7a346 |
- "volume%d.brick%d.uuid", i, j);
|
|
|
e7a346 |
+ "volume%d.brick%d.uuid", i, index);
|
|
|
e7a346 |
ret = dict_get_str (dict, key, &uuid);
|
|
|
e7a346 |
if (ret)
|
|
|
e7a346 |
goto out;
|
|
|
e7a346 |
@@ -3053,7 +3053,7 @@ cli_xml_output_vol_info (cli_local_t *local, dict_t *dict)
|
|
|
e7a346 |
|
|
|
e7a346 |
memset (key, 0, sizeof (key));
|
|
|
e7a346 |
snprintf (key, sizeof (key),
|
|
|
e7a346 |
- "volume%d.brick%d.uuid", i, j);
|
|
|
e7a346 |
+ "volume%d.brick%d.uuid", i, index);
|
|
|
e7a346 |
ret = dict_get_str (dict, key, &uuid);
|
|
|
e7a346 |
if (ret)
|
|
|
e7a346 |
goto out;
|
|
|
e7a346 |
--
|
|
|
e7a346 |
1.8.3.1
|
|
|
e7a346 |
|