diff options
-rw-r--r-- | tests/bugs/bug-913487.t | 14 | ||||
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/tests/bugs/bug-913487.t b/tests/bugs/bug-913487.t new file mode 100644 index 00000000000..2095903d9d2 --- /dev/null +++ b/tests/bugs/bug-913487.t @@ -0,0 +1,14 @@ +#!/bin/bash + +. $(dirname $0)/../include.rc + +cleanup; + +TEST glusterd; +TEST pidof glusterd; + +TEST ! $CLI volume set $V0 performance.open-behind off; + +TEST pidof glusterd; + +cleanup; diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index c901d613623..4e4f0394de3 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -2430,7 +2430,7 @@ glusterd_dict_set_volid (dict_t *dict, char *volname, char **op_errstr) out: if (msg[0] != '\0') { gf_log (this->name, GF_LOG_ERROR, "%s", msg); - *op_errstr = strdup (msg); + *op_errstr = gf_strdup (msg); } return ret; } |