From 4a9c36ea9df9dada0d16c5fdb9fe149b360d9150 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 27 Sep 2010 08:57:05 +0000 Subject: glusterfsd: after volume fetch, return proper values from functions Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971 --- glusterfsd/src/glusterfsd-mgmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'glusterfsd') diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index 7f1b52f56..4c0d147e8 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; -- cgit