MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / did_fail

Function did_fail

pengine/clone.c:42–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static gboolean
43did_fail(const resource_t * rsc)
44{
45 GListPtr gIter = rsc->children;
46
47 if (is_set(rsc->flags, pe_rsc_failed)) {
48 return TRUE;
49 }
50
51 for (; gIter != NULL; gIter = gIter->next) {
52 resource_t *child_rsc = (resource_t *) gIter->data;
53
54 if (did_fail(child_rsc)) {
55 return TRUE;
56 }
57 }
58 return FALSE;
59}
60
61gint
62sort_clone_instance(gconstpointer a, gconstpointer b, gpointer data_set)

Callers 1

sort_clone_instanceFunction · 0.85

Calls 1

is_setFunction · 0.85

Tested by

no test coverage detected