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

Function apply_placement_constraints

pengine/allocate.c:546–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546static gboolean
547apply_placement_constraints(pe_working_set_t * data_set)
548{
549 GListPtr gIter = NULL;
550
551 crm_trace("Applying constraints...");
552
553 for (gIter = data_set->placement_constraints; gIter != NULL; gIter = gIter->next) {
554 rsc_to_node_t *cons = (rsc_to_node_t *) gIter->data;
555
556 cons->rsc_lh->cmds->rsc_location(cons->rsc_lh, cons);
557 }
558
559 return TRUE;
560
561}
562
563static void
564common_apply_stickiness(resource_t * rsc, node_t * node, pe_working_set_t * data_set)

Callers 1

stage2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected