summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-10-11 06:18:07 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-11 05:10:20 -0700
commit5d4800fa35d3a9ca08175fe2bbdd78c2b0b5e184 (patch)
tree61b72c293aacca546e5d26229da5f3f3695962ea /glusterfsd
parentab42cb8d75985e33fb27e9fc5da0bc37c1024804 (diff)
Do graph init after topology change
Signed-off-by: Vijay Bellur <vijay@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.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;