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

Function native_rsc_colocation_rh

pengine/native.c:1441–1462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1439}
1440
1441void
1442native_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
1464static gboolean
1465filter_rsc_ticket(resource_t * rsc_lh, rsc_ticket_t * rsc_ticket)

Callers

nothing calls this directly

Calls 3

influence_priorityFunction · 0.85
colocation_matchFunction · 0.85

Tested by

no test coverage detected