| 94 | } |
| 95 | |
| 96 | gboolean |
| 97 | can_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 | |
| 118 | struct compare_data { |
| 119 | const node_t *node1; |
no outgoing calls
no test coverage detected