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

Function can_run_any

pengine/utils.c:490–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490gboolean
491can_run_any(GHashTable * nodes)
492{
493 GHashTableIter iter;
494 node_t *node = NULL;
495
496 if (nodes == NULL) {
497 return FALSE;
498 }
499
500 g_hash_table_iter_init(&iter, nodes);
501 while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) {
502 if (can_run_resources(node) && node->weight >= 0) {
503 return TRUE;
504 }
505 }
506
507 return FALSE;
508}

Callers 3

rsc_merge_weightsFunction · 0.85
native_colorFunction · 0.85
colocation_matchFunction · 0.85

Calls 3

g_hash_table_iter_initFunction · 0.85
g_hash_table_iter_nextFunction · 0.85
can_run_resourcesFunction · 0.85

Tested by

no test coverage detected