256ebe
From c63346dab3e5da0605bf4ddaa314253f42892c9d Mon Sep 17 00:00:00 2001
256ebe
From: Atin Mukherjee <amukherj@redhat.com>
256ebe
Date: Wed, 8 May 2019 12:13:59 +0530
256ebe
Subject: [PATCH 136/141] glusterd: fix inconsistent global option output in
256ebe
 volume get
256ebe
256ebe
volume get all all | grep <key> & volume get <volname> all | grep <key>
256ebe
dumps two different output value for cluster.brick-multiplex and
256ebe
cluster.server-quorum-ratio
256ebe
256ebe
>upstream patch : https://review.gluster.org/#/c/glusterfs/+/22680/
256ebe
256ebe
>Fixes: bz#1707700
256ebe
>Change-Id: Id131734e0502aa514b84768cf67fce3c22364eae
256ebe
>Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
256ebe
256ebe
BUG: 1706776
256ebe
Change-Id: Id131734e0502aa514b84768cf67fce3c22364eae
256ebe
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
256ebe
Reviewed-on: https://code.engineering.redhat.com/gerrit/169948
256ebe
Tested-by: RHGS Build Bot <nigelb@redhat.com>
256ebe
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
256ebe
---
256ebe
 xlators/mgmt/glusterd/src/glusterd-volume-set.c | 4 ++--
256ebe
 1 file changed, 2 insertions(+), 2 deletions(-)
256ebe
256ebe
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
256ebe
index e52de20..4b32fb6 100644
256ebe
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
256ebe
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
256ebe
@@ -2906,7 +2906,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
256ebe
      .op_version = 1},
256ebe
     {.key = GLUSTERD_QUORUM_RATIO_KEY,
256ebe
      .voltype = "mgmt/glusterd",
256ebe
-     .value = "0",
256ebe
+     .value = "51",
256ebe
      .op_version = 1},
256ebe
     /* changelog translator - global tunables */
256ebe
     {.key = "changelog.changelog",
256ebe
@@ -3547,7 +3547,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
256ebe
     /* Brick multiplexing options */
256ebe
     {.key = GLUSTERD_BRICK_MULTIPLEX_KEY,
256ebe
      .voltype = "mgmt/glusterd",
256ebe
-     .value = "off",
256ebe
+     .value = "disable",
256ebe
      .op_version = GD_OP_VERSION_3_10_0,
256ebe
      .validate_fn = validate_boolean,
256ebe
      .type = GLOBAL_DOC,
256ebe
-- 
256ebe
1.8.3.1
256ebe