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

Function parent_node_instance

pengine/clone.c:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29static void append_parent_colocation(resource_t * rsc, resource_t * child, gboolean all);
30
31static node_t *
32parent_node_instance(const resource_t * rsc, node_t * node)
33{
34 node_t *ret = NULL;
35
36 if (node != NULL) {
37 ret = pe_hash_table_lookup(rsc->parent->allowed_nodes, node->details->id);
38 }
39 return ret;
40}
41
42static gboolean
43did_fail(const resource_t * rsc)

Callers 3

sort_clone_instanceFunction · 0.85
can_run_instanceFunction · 0.85
clone_colorFunction · 0.85

Calls 1

pe_hash_table_lookupFunction · 0.85

Tested by

no test coverage detected