MCPcopy Create free account
hub / github.com/corosync/corosync / wd_resource_check_fn

Function wd_resource_check_fn

exec/wd.c:405–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405static void wd_resource_check_fn (void* resource_ref)
406{
407 struct resource* ref = (struct resource*)resource_ref;
408
409 if (wd_resource_state_is_ok (ref) == CS_FALSE) {
410 cs_fsm_process(&ref->fsm, WD_E_FAILURE, ref, wd_fsm_cb);
411 return;
412 }
413 api->timer_add_duration(ref->check_timeout*MILLI_2_NANO_SECONDS,
414 ref, wd_resource_check_fn, &ref->check_timer);
415}
416
417/*
418 * return 0 - fully configured

Callers

nothing calls this directly

Calls 2

wd_resource_state_is_okFunction · 0.85
cs_fsm_processFunction · 0.85

Tested by

no test coverage detected