summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli/src/cli-cmd-parser.c4
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-brick-ops.c3
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-conn-mgmt.c5
3 files changed, 6 insertions, 6 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index fe5a763a19e..4c5497ac206 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -2885,7 +2885,7 @@ force_push_pem_no_verify_parse(const char **words, int wordcount, dict_t *dict,
ret = -1;
goto out;
}
- ret = dict_set_uint32(dict, "force", _gf_true);
+ ret = dict_set_int32n(dict, "force", SLEN("force"), 1);
if (ret)
goto out;
(*cmdi)++;
@@ -4524,7 +4524,7 @@ cli_snap_create_parse(dict_t *dict, const char **words, int wordcount)
}
if (strcmp(words[i], "no-timestamp") == 0) {
- ret = dict_set_str(dict, "no-timestamp", "true");
+ ret = dict_set_int32n(dict, "no-timestamp", SLEN("no-timestamp"), 1);
if (ret) {
gf_log("cli", GF_LOG_ERROR,
"Could not save "
diff --git a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
index 8719bbf3fd6..e6ea9c9881d 100644
--- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
@@ -3114,6 +3114,7 @@ glusterd_op_stage_barrier(dict_t *dict, char **op_errstr)
xlator_t *this = NULL;
char *volname = NULL;
glusterd_volinfo_t *vol = NULL;
+ char *barrier_op = NULL;
GF_ASSERT(dict);
this = THIS;
@@ -3141,7 +3142,7 @@ glusterd_op_stage_barrier(dict_t *dict, char **op_errstr)
goto out;
}
- ret = dict_get_str_boolean(dict, "barrier", -1);
+ ret = dict_get_strn(dict, "barrier", SLEN("barrier"), &barrier_op);
if (ret == -1) {
gf_asprintf(op_errstr,
"Barrier op for volume %s not present "
diff --git a/xlators/mgmt/glusterd/src/glusterd-conn-mgmt.c b/xlators/mgmt/glusterd/src/glusterd-conn-mgmt.c
index 87025076d27..f84a7617549 100644
--- a/xlators/mgmt/glusterd/src/glusterd-conn-mgmt.c
+++ b/xlators/mgmt/glusterd/src/glusterd-conn-mgmt.c
@@ -40,9 +40,8 @@ glusterd_conn_init(glusterd_conn_t *conn, char *sockpath, int frame_timeout,
if (ret)
goto out;
- ret = dict_set_nstrn(options, "transport.socket.ignore-enoent",
- SLEN("transport.socket.ignore-enoent"), "on",
- SLEN("on"));
+ ret = dict_set_int32n(options, "transport.socket.ignore-enoent",
+ SLEN("transport.socket.ignore-enoent"), 1);
if (ret)
goto out;