summaryrefslogtreecommitdiffstats
path: root/glusterfsd/src
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfsd/src')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index c857ffedc52..c7d2e5a2b57 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -262,13 +262,14 @@ glusterfs_volfile_reconfigure (FILE *newvolfile_fp)
}
newvolfile_graph = glusterfs_graph_construct (newvolfile_fp);
- if (!oldvolfile_graph) {
+ if (!newvolfile_graph) {
goto out;
}
if (!is_graph_topology_equal (oldvolfile_graph,
newvolfile_graph)) {
+ ret = 1;
gf_log ("glusterfsd-mgmt", GF_LOG_DEBUG,
"Graph topology not equal(should call INIT)");
goto out;