summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-op-sm.c
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2017-02-09 10:13:20 +0530
committerAtin Mukherjee <amukherj@redhat.com>2017-02-09 11:41:39 -0500
commit9385d3409054f21c7b936ad62b9a67728c31d839 (patch)
tree72cc5ea169edf90d47afa0047be5d9744fa448d6 /xlators/mgmt/glusterd/src/glusterd-op-sm.c
parent824a48fb5ce20e26ed78b26afd81ec876bc826ec (diff)
glusterd: set default GLUSTERD_QUORUM_RATIO_KEY value to 51
The default value of GLUSTERD_QUORUM_RATIO_KEY is set to 0, while this doesn't harm any functionality as the actual quorum calculation logic always take the factor that if the key is not set in the dictionary the value is considered to be 51 but from an user perspective it gives an incorrect output through volume get where quorum-ratio is always shown as 0 until reconfigured. Change-Id: I087712fa4736055859f29cc3bdbb3b111cbe7224 BUG: 1420611 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: https://review.gluster.org/16572 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 8e73d9072ab..5169f414e94 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -67,7 +67,7 @@ glusterd_set_shared_storage (dict_t *dict, char *key, char *value,
* in glusterd_get_global_options_for_all_vols, or else we might crash there.
*/
glusterd_all_vol_opts valid_all_vol_opts[] = {
- { GLUSTERD_QUORUM_RATIO_KEY, "0" },
+ { GLUSTERD_QUORUM_RATIO_KEY, "51" },
{ GLUSTERD_SHARED_STORAGE_KEY, "disable" },
/* This one actually gets filled in dynamically. */
{ GLUSTERD_GLOBAL_OP_VERSION_KEY, "BUG_NO_OP_VERSION"},