| 832 | } |
| 833 | |
| 834 | enum pe_ordering |
| 835 | get_flags(const char *id, enum pe_order_kind kind, |
| 836 | const char *action_first, const char *action_then, gboolean invert) |
| 837 | { |
| 838 | enum pe_ordering flags = pe_order_optional; |
| 839 | |
| 840 | if (invert && kind == pe_order_kind_mandatory) { |
| 841 | crm_trace("Upgrade %s: implies left", id); |
| 842 | flags |= pe_order_implies_first; |
| 843 | |
| 844 | } else if (kind == pe_order_kind_mandatory) { |
| 845 | crm_trace("Upgrade %s: implies right", id); |
| 846 | flags |= pe_order_implies_then; |
| 847 | if (safe_str_eq(action_first, RSC_START) |
| 848 | || safe_str_eq(action_first, RSC_PROMOTE)) { |
| 849 | crm_trace("Upgrade %s: runnable", id); |
| 850 | flags |= pe_order_runnable_left; |
| 851 | } |
| 852 | |
| 853 | } else if (kind == pe_order_kind_serialize) { |
| 854 | flags |= pe_order_serialize_only; |
| 855 | } |
| 856 | |
| 857 | return flags; |
| 858 | } |
| 859 | |
| 860 | static gboolean |
| 861 | unpack_order_set(xmlNode * set, enum pe_order_kind kind, resource_t ** rsc, |
no outgoing calls
no test coverage detected