summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-09-27 08:57:05 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-27 11:58:02 -0700
commit4a9c36ea9df9dada0d16c5fdb9fe149b360d9150 (patch)
treee4d093de04582f5b17edb0a59fb2f2af0ff11ca9 /glusterfsd
parentedf5b0b4b89b46a566607d159b282c57298679db (diff)
glusterfsd: after volume fetch, return proper values from functions
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
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 7f1b52f..4c0d147 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;