| 395 | } |
| 396 | |
| 397 | static gboolean |
| 398 | anonymous_known_on(resource_t * rsc, node_t *node) |
| 399 | { |
| 400 | GListPtr rIter = NULL; |
| 401 | char *key = clone_strip(rsc->id); |
| 402 | resource_t *parent = uber_parent(rsc); |
| 403 | |
| 404 | for(rIter = parent->children; rIter; rIter = rIter->next) { |
| 405 | resource_t *child = rIter->data; |
| 406 | |
| 407 | /* ->find_rsc() because we might be a cloned group |
| 408 | * and knowing that other members of the group are |
| 409 | * known here implies nothing |
| 410 | */ |
| 411 | rsc = parent->fns->find_rsc(child, key, NULL, pe_find_clone); |
| 412 | pe_rsc_trace(rsc, "Checking %s for %s on %s", rsc->id, key, node->details->uname); |
| 413 | if(g_hash_table_lookup(rsc->known_on, node->details->id)) { |
| 414 | free(key); |
| 415 | return TRUE; |
| 416 | } |
| 417 | } |
| 418 | free(key); |
| 419 | return FALSE; |
| 420 | } |
| 421 | |
| 422 | static int |
| 423 | master_score(resource_t * rsc, node_t * node, int not_set_value) |
no test coverage detected