MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / decom

Function decom

net/net_evbuffer.c:3266–3285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3264}
3265
3266void decom(char *host)
3267{
3268 if (net_stop) {
3269 return;
3270 }
3271 if (strcmp(host, gbl_myhostname) == 0) {
3272 return;
3273 }
3274 struct host_info *h = host_info_find(host);
3275 if (h == NULL) {
3276 return;
3277 }
3278 logmsg(LOGMSG_USER, "%s host:%s\n", __func__, host);
3279 struct event_info *e;
3280 LIST_FOREACH(e, &h->event_list, host_list_entry) {
3281 if (e->decomissioned) continue;
3282 set_decom(e);
3283 do_close(e, send_decom_all);
3284 }
3285}
3286
3287void stop_event_net(void)
3288{

Callers 3

process_decom_intFunction · 0.85
process_decom_nodenumFunction · 0.85
process_decom_hostnameFunction · 0.85

Calls 4

host_info_findFunction · 0.85
set_decomFunction · 0.85
do_closeFunction · 0.85
logmsgFunction · 0.50

Tested by

no test coverage detected