MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / remove_node

Function remove_node

modules/clusterer/clusterer.c:2003–2019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2001}
2002
2003void 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
2021unsigned long clusterer_get_num_nodes(int state)
2022{

Callers 2

cluster_remove_nodeFunction · 0.70
handle_remove_nodeFunction · 0.70

Calls 6

set_link_w_neighFunction · 0.85
do_actions_node_evFunction · 0.85
lock_getFunction · 0.85
delete_neighbourFunction · 0.85
lock_releaseFunction · 0.85
remove_node_listFunction · 0.85

Tested by

no test coverage detected