diff options
| author | Amar Tumballi <amar@gluster.com> | 2010-09-28 05:37:02 +0000 | 
|---|---|---|
| committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-28 09:04:51 -0700 | 
| commit | 387f4d385e1d2c29af54c4f87eef7a07acfcfdf9 (patch) | |
| tree | 22a63e2bac709e11329e76b445b1bd8739a12581 /libglusterfs/src/graph.c | |
| parent | 5ea64d983b31c6882d4582af71a339b6a4fcccf2 (diff) | |
more proper error returns in case of graph topology validation
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 'libglusterfs/src/graph.c')
| -rw-r--r-- | libglusterfs/src/graph.c | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index c44fa44ad9b..0c63c194d01 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -501,7 +501,6 @@ glusterfs_graph_reconfigure (glusterfs_graph_t *oldgraph,  {          xlator_t *old_xl = NULL;          xlator_t *new_xl = NULL; -        int ret = 0;          GF_ASSERT (oldgraph);          GF_ASSERT (newgraph); @@ -509,9 +508,7 @@ glusterfs_graph_reconfigure (glusterfs_graph_t *oldgraph,          old_xl   = oldgraph->first;          new_xl   = newgraph->first; -        ret = xlator_tree_reconfigure (old_xl, new_xl); - -        return ret; +        return xlator_tree_reconfigure (old_xl, new_xl);  }  int  | 
