summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index 7f1b52f5688..4c0d147e8df 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -237,7 +237,7 @@ glusterfs_volfile_reconfigure (FILE *newvolfile_fp)
FILE *oldvolfile_fp = NULL;
glusterfs_ctx_t *ctx = NULL;
- int ret = 0;
+ int ret = -1;
oldvolfile_fp = tmpfile ();
if (!oldvolfile_fp)
@@ -360,7 +360,7 @@ mgmt_getspec_cbk (struct rpc_req *req, struct iovec *iov, int count,
*/
ret = glusterfs_volfile_reconfigure (tmpfp);
- if (ret) {
+ if (!ret) {
gf_log ("glusterfsd-mgmt", GF_LOG_DEBUG,
"No need to re-load volfile");
goto out;