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

Function get_flags

pengine/constraints.c:834–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834enum pe_ordering
835get_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
860static gboolean
861unpack_order_set(xmlNode * set, enum pe_order_kind kind, resource_t ** rsc,

Callers 3

unpack_simple_rsc_orderFunction · 0.85
unpack_order_setFunction · 0.85
order_rsc_setsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected