summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2012-09-28 21:42:27 +0530
committerPranith Kumar K <pkarampu@redhat.com>2012-09-28 22:49:05 +0530
commit64b869927fa10b0dad3c1daebbfeca7bcd9a4884 (patch)
treee3e95ccbd3ecf828f5af22bbe6584ed8ad13c3ed
parent3b291d14ec7049e324a75ed48c5ed467da8ed9d1 (diff)
mgmt/glusterd: Don't show opt-version count in volume info
Change-Id: Ia889753c59dde4cdaf4486781fde883b5d153e76 BUG: 861289 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index a9c79ce2ab1..99680b74ffe 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -376,6 +376,8 @@ glusterd_add_volume_detail_to_dict (glusterd_volinfo_t *volinfo,
void _build_option_key (dict_t *d, char *k, data_t *v, void *tmp)
{
+ if (strcmp (k, GLUSTERD_GLOBAL_OPT_VERSION) == 0)
+ return;
snprintf (reconfig_key, 256, "volume%d.option.%s", count, k);
ret = dict_set_str (volumes, reconfig_key, v->data);
if (0 == ret)