LHS before RHS */
| 741 | |
| 742 | /* LHS before RHS */ |
| 743 | int |
| 744 | new_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 */ |
| 767 | int |
no test coverage detected