From 5d4800fa35d3a9ca08175fe2bbdd78c2b0b5e184 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Mon, 11 Oct 2010 06:18:07 +0000 Subject: Do graph init after topology change Signed-off-by: Vijay Bellur 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'glusterfsd/src') diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index c857ffedc..c7d2e5a2b 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; -- cgit