| 2001 | } |
| 2002 | |
| 2003 | void remove_node(struct cluster_info *cl, struct node_info *node) |
| 2004 | { |
| 2005 | node_info_t *it; |
| 2006 | int ev_actions_cl = 1; |
| 2007 | |
| 2008 | set_link_w_neigh(LS_DOWN, node); |
| 2009 | |
| 2010 | do_actions_node_ev(cl, &ev_actions_cl, 1); |
| 2011 | |
| 2012 | for (it = cl->node_list; it; it = it->next) { |
| 2013 | lock_get(it->lock); |
| 2014 | delete_neighbour(it, node); |
| 2015 | lock_release(it->lock); |
| 2016 | } |
| 2017 | |
| 2018 | remove_node_list(cl, node); |
| 2019 | } |
| 2020 | |
| 2021 | unsigned long clusterer_get_num_nodes(int state) |
| 2022 | { |
no test coverage detected