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

Function stage0

pengine/allocate.c:754–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752}
753
754gboolean
755stage0(pe_working_set_t * data_set)
756{
757 xmlNode *cib_constraints = get_object_root(XML_CIB_TAG_CONSTRAINTS, data_set->input);
758
759 if (data_set->input == NULL) {
760 return FALSE;
761 }
762
763 if (is_set(data_set->flags, pe_flag_have_status) == FALSE) {
764 crm_trace("Calculating status");
765 cluster_status(data_set);
766 }
767
768 set_alloc_actions(data_set);
769 apply_system_health(data_set);
770 unpack_constraints(cib_constraints, data_set);
771
772 return TRUE;
773}
774
775static void
776wait_for_probe(resource_t * rsc, const char *action, action_t * probe_complete,

Callers 2

mainFunction · 0.85
do_calculationsFunction · 0.85

Calls 6

get_object_rootFunction · 0.85
is_setFunction · 0.85
cluster_statusFunction · 0.85
set_alloc_actionsFunction · 0.85
apply_system_healthFunction · 0.85
unpack_constraintsFunction · 0.85

Tested by

no test coverage detected