summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-brick-ops.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-brick-ops.c3
1 files changed, 2 insertions, 1 deletions
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 "