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

Function can_run_resources

pengine/utils.c:96–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96gboolean
97can_run_resources(const node_t * node)
98{
99 if (node == NULL) {
100 return FALSE;
101 }
102#if 0
103 if (node->weight < 0) {
104 return FALSE;
105 }
106#endif
107
108 if (node->details->online == FALSE
109 || node->details->shutdown || node->details->unclean || node->details->standby) {
110 crm_trace("%s: online=%d, unclean=%d, standby=%d",
111 node->details->uname, node->details->online,
112 node->details->unclean, node->details->standby);
113 return FALSE;
114 }
115 return TRUE;
116}
117
118struct compare_data {
119 const node_t *node1;

Callers 11

sort_node_weightFunction · 0.85
native_assign_nodeFunction · 0.85
can_run_anyFunction · 0.85
check_actionsFunction · 0.85
sort_clone_instanceFunction · 0.85
can_run_instanceFunction · 0.85
clone_colorFunction · 0.85
can_be_masterFunction · 0.85
apply_master_prefsFunction · 0.85
native_choose_nodeFunction · 0.85
node_list_attr_scoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected