crm_debug_3("Un-ordered version");
crm_debug_4("Un-ordered version");
void incarnation_internal_constraints(resource_t *rsc, GListPtr *ordering_constraints){	resource_t *last_rsc = NULL;	incarnation_variant_data_t *incarnation_data = NULL;	get_incarnation_variant_data(incarnation_data, rsc);	/* global stop before start */	order_stop_start(incarnation_data->self, incarnation_data->self);		slist_iter(		child_rsc, resource_t, incarnation_data->child_list, lpc,		/* child stop before start */		order_stop_start(child_rsc, child_rsc);				if(incarnation_data->ordered && last_rsc != NULL) {			crm_debug_3("Ordered version");			if(lpc < incarnation_data->active_incarnation) {				/* child/child relative start */				order_start_start(last_rsc, child_rsc);			}						/* child/child relative stop */			order_stop_stop(child_rsc, last_rsc);		} else if(incarnation_data->ordered) {			crm_debug_3("Ordered version (1st node)");			/* child start before global started */			custom_action_order(				child_rsc, start_key(child_rsc), NULL,				incarnation_data->self, started_key(incarnation_data->self), NULL,				pecs_startstop, ordering_constraints);						/* first child stop before global stopped */			custom_action_order(				child_rsc, stop_key(child_rsc), NULL,				incarnation_data->self, stopped_key(incarnation_data->self), NULL,				pecs_startstop, ordering_constraints);						/* global start before first child start */			order_start_start(incarnation_data->self, child_rsc);		} else {			crm_debug_3("Un-ordered version");			if(lpc < incarnation_data->active_incarnation) {				/* child start before global started */				custom_action_order(					child_rsc, start_key(child_rsc), NULL,					incarnation_data->self, started_key(incarnation_data->self), NULL,					  pecs_startstop, ordering_constraints);			}					/* global start before child start */			order_start_start(incarnation_data->self, child_rsc);			/* child stop before global stopped */			custom_action_order(				child_rsc, stop_key(child_rsc), NULL,				incarnation_data->self, stopped_key(incarnation_data->self), NULL,				pecs_startstop, ordering_constraints);						/* global stop before child stop */			order_stop_stop(incarnation_data->self, child_rsc);		}		if(lpc < incarnation_data->active_incarnation) {			last_rsc = child_rsc;		}				);	if(incarnation_data->ordered && last_rsc != NULL) {		crm_debug_3("Ordered version (last node)");		/* last child start before global started */		custom_action_order(			last_rsc, start_key(last_rsc), NULL,			incarnation_data->self, started_key(incarnation_data->self), NULL,			pecs_startstop, ordering_constraints);		/* global stop before first child stop */		order_stop_stop(incarnation_data->self, last_rsc);	}		}