| 1439 | } |
| 1440 | |
| 1441 | void |
| 1442 | native_rsc_colocation_rh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) |
| 1443 | { |
| 1444 | enum filter_colocation_res filter_results; |
| 1445 | |
| 1446 | filter_results = filter_colocation_constraint(rsc_lh, rsc_rh, constraint); |
| 1447 | |
| 1448 | switch (filter_results) { |
| 1449 | case influence_rsc_priority: |
| 1450 | influence_priority(rsc_lh, rsc_rh, constraint); |
| 1451 | break; |
| 1452 | case influence_rsc_location: |
| 1453 | pe_rsc_trace(rsc_lh, "%sColocating %s with %s (%s, weight=%d)", |
| 1454 | constraint->score >= 0 ? "" : "Anti-", |
| 1455 | rsc_lh->id, rsc_rh->id, constraint->id, constraint->score); |
| 1456 | colocation_match(rsc_lh, rsc_rh, constraint); |
| 1457 | break; |
| 1458 | case influence_nothing: |
| 1459 | default: |
| 1460 | return; |
| 1461 | } |
| 1462 | } |
| 1463 | |
| 1464 | static gboolean |
| 1465 | filter_rsc_ticket(resource_t * rsc_lh, rsc_ticket_t * rsc_ticket) |
nothing calls this directly
no test coverage detected