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

Function have_enough_capacity

pengine/native.c:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static gboolean
104have_enough_capacity(node_t * node, resource_t * rsc)
105{
106 struct capacity_data data;
107
108 data.node = node;
109 data.rsc = rsc;
110 data.is_enough = TRUE;
111
112 g_hash_table_foreach(rsc->utilization, check_capacity, &data);
113
114 return data.is_enough;
115}
116
117static gboolean
118native_choose_node(resource_t * rsc, node_t * prefer, pe_working_set_t * data_set)

Callers 1

native_choose_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected