| 544 | } |
| 545 | |
| 546 | static gboolean |
| 547 | apply_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 | |
| 563 | static void |
| 564 | common_apply_stickiness(resource_t * rsc, node_t * node, pe_working_set_t * data_set) |