|
|
d1681e |
From 2a80ccb39ea7f4ef5c801ad78b43e4bdc23a3c64 Mon Sep 17 00:00:00 2001
|
|
|
d1681e |
From: Atin Mukherjee <amukherj@redhat.com>
|
|
|
d1681e |
Date: Fri, 2 Feb 2018 15:38:58 +0530
|
|
|
d1681e |
Subject: [PATCH 138/139] glusterd: enable brick multiplexing by default
|
|
|
d1681e |
|
|
|
d1681e |
Label: DOWNSTREAM ONLY
|
|
|
d1681e |
|
|
|
d1681e |
Change-Id: I0d9a1d8ba2fd60576df9761b5faaa521e9228be0
|
|
|
d1681e |
BUG: 1540011
|
|
|
d1681e |
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
d1681e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/129382
|
|
|
d1681e |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
d1681e |
Reviewed-by: Mohit Agrawal <moagrawa@redhat.com>
|
|
|
d1681e |
---
|
|
|
d1681e |
cli/src/cli-cmd-parser.c | 18 ------------------
|
|
|
d1681e |
xlators/mgmt/glusterd/src/glusterd-op-sm.c | 2 +-
|
|
|
d1681e |
xlators/mgmt/glusterd/src/glusterd-utils.c | 2 +-
|
|
|
d1681e |
xlators/mgmt/glusterd/src/glusterd-volume-set.c | 2 +-
|
|
|
d1681e |
4 files changed, 3 insertions(+), 21 deletions(-)
|
|
|
d1681e |
|
|
|
d1681e |
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
|
|
|
d1681e |
index 764f420..54bd57f 100644
|
|
|
d1681e |
--- a/cli/src/cli-cmd-parser.c
|
|
|
d1681e |
+++ b/cli/src/cli-cmd-parser.c
|
|
|
d1681e |
@@ -1740,24 +1740,6 @@ cli_cmd_volume_set_parse (struct cli_state *state, const char **words,
|
|
|
d1681e |
goto out;
|
|
|
d1681e |
}
|
|
|
d1681e |
}
|
|
|
d1681e |
-
|
|
|
d1681e |
- if ((strcmp (key, "cluster.brick-multiplex") == 0)) {
|
|
|
d1681e |
- question = "Brick-multiplexing is supported only for "
|
|
|
d1681e |
- "container workloads (CNS/CRS). Also it is "
|
|
|
d1681e |
- "advised to make sure that either all "
|
|
|
d1681e |
- "volumes are in stopped state or no bricks "
|
|
|
d1681e |
- "are running before this option is modified."
|
|
|
d1681e |
- "Do you still want to continue?";
|
|
|
d1681e |
-
|
|
|
d1681e |
- answer = cli_cmd_get_confirmation (state, question);
|
|
|
d1681e |
- if (GF_ANSWER_NO == answer) {
|
|
|
d1681e |
- gf_log ("cli", GF_LOG_ERROR, "Operation "
|
|
|
d1681e |
- "cancelled, exiting");
|
|
|
d1681e |
- *op_errstr = gf_strdup ("Aborted by user.");
|
|
|
d1681e |
- ret = -1;
|
|
|
d1681e |
- goto out;
|
|
|
d1681e |
- }
|
|
|
d1681e |
- }
|
|
|
d1681e |
}
|
|
|
d1681e |
|
|
|
d1681e |
ret = dict_set_int32 (dict, "count", wordcount-3);
|
|
|
d1681e |
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
d1681e |
index b1a6e06..2fc2e3b 100644
|
|
|
d1681e |
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
d1681e |
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
d1681e |
@@ -78,7 +78,7 @@ glusterd_all_vol_opts valid_all_vol_opts[] = {
|
|
|
d1681e |
* TBD: add a dynamic handler to set the appropriate value
|
|
|
d1681e |
*/
|
|
|
d1681e |
{ GLUSTERD_MAX_OP_VERSION_KEY, "BUG_NO_MAX_OP_VERSION"},
|
|
|
d1681e |
- { GLUSTERD_BRICK_MULTIPLEX_KEY, "disable"},
|
|
|
d1681e |
+ { GLUSTERD_BRICK_MULTIPLEX_KEY, "enable"},
|
|
|
d1681e |
/* Set this value to 0 by default implying brick-multiplexing
|
|
|
d1681e |
* behaviour with no limit set on the number of brick instances that
|
|
|
d1681e |
* can be attached per process.
|
|
|
d1681e |
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
d1681e |
index f1b365f..4bb54db 100644
|
|
|
d1681e |
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
d1681e |
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
d1681e |
@@ -114,7 +114,7 @@ is_brick_mx_enabled (void)
|
|
|
d1681e |
if (!ret)
|
|
|
d1681e |
ret = gf_string2boolean (value, &enabled);
|
|
|
d1681e |
|
|
|
d1681e |
- return ret ? _gf_false: enabled;
|
|
|
d1681e |
+ return ret ? _gf_true : enabled;
|
|
|
d1681e |
}
|
|
|
d1681e |
|
|
|
d1681e |
int
|
|
|
d1681e |
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
|
|
|
d1681e |
index c255be0..693c917 100644
|
|
|
d1681e |
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
|
|
|
d1681e |
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
|
|
|
d1681e |
@@ -3459,7 +3459,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
|
|
|
d1681e |
/* Brick multiplexing options */
|
|
|
d1681e |
{ .key = GLUSTERD_BRICK_MULTIPLEX_KEY,
|
|
|
d1681e |
.voltype = "mgmt/glusterd",
|
|
|
d1681e |
- .value = "off",
|
|
|
d1681e |
+ .value = "on",
|
|
|
d1681e |
.op_version = GD_OP_VERSION_3_10_0,
|
|
|
d1681e |
.validate_fn = validate_boolean,
|
|
|
d1681e |
.type = GLOBAL_DOC,
|
|
|
d1681e |
--
|
|
|
d1681e |
1.8.3.1
|
|
|
d1681e |
|