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

Function new_rsc_order

pengine/constraints.c:743–764  ·  view source on GitHub ↗

LHS before RHS */

Source from the content-addressed store, hash-verified

741
742/* LHS before RHS */
743int
744new_rsc_order(resource_t * lh_rsc, const char *lh_task,
745 resource_t * rh_rsc, const char *rh_task,
746 enum pe_ordering type, pe_working_set_t * data_set)
747{
748 char *lh_key = NULL;
749 char *rh_key = NULL;
750
751 CRM_CHECK(lh_rsc != NULL, return -1);
752 CRM_CHECK(lh_task != NULL, return -1);
753 CRM_CHECK(rh_rsc != NULL, return -1);
754 CRM_CHECK(rh_task != NULL, return -1);
755
756 if (validate_order_resources(lh_rsc, rh_rsc)) {
757 return -1;
758 }
759
760 lh_key = generate_op_key(lh_rsc->id, lh_task, 0);
761 rh_key = generate_op_key(rh_rsc->id, rh_task, 0);
762
763 return custom_action_order(lh_rsc, lh_key, NULL, rh_rsc, rh_key, NULL, type, data_set);
764}
765
766/* LHS before RHS */
767int

Callers 9

unpack_simple_rsc_orderFunction · 0.85
unpack_order_setFunction · 0.85
order_rsc_setsFunction · 0.85
DeleteRscFunction · 0.85

Calls 3

validate_order_resourcesFunction · 0.85
generate_op_keyFunction · 0.85
custom_action_orderFunction · 0.85

Tested by

no test coverage detected