crm_action_debug_3( print_action("RH (order_actions)", rh_action, FALSE));  /* avoid creating duplicate entries for the same pre-requisite * in the transition graph */ slist_iter( existing, action_wrapper_t, rh_action->actions_before, lpc, if(existing->action == lh_action) { wrapper = existing; break; } ); 
log_action(LOG_DEBUG_4, "LH (order_actions)", lh_action, FALSE); log_action(LOG_DEBUG_4, "RH (order_actions)", rh_action, FALSE); 
order_actions(action_t *lh_action, action_t *rh_action, order_constraint_t *order) {	action_wrapper_t *wrapper = NULL;	GListPtr list = NULL;		crm_debug_2("Ordering %d: Action %d before %d",		  order?order->id:-1, lh_action->id, rh_action->id);		crm_action_debug_3(		print_action("LH (order_actions)", lh_action, FALSE));	crm_action_debug_3(		print_action("RH (order_actions)", rh_action, FALSE));		/* avoid creating duplicate entries for the same pre-requisite	 * in the transition graph	 */	slist_iter(		existing, action_wrapper_t, rh_action->actions_before, lpc,		if(existing->action == lh_action) {			wrapper = existing;			break;		}		);	if(wrapper && wrapper->type == order->type) {		crm_debug_2("Compressing multiple %s orderings for action %d",			    ordering_type2text(order->type), lh_action->id);	} else if(wrapper && wrapper->type == pe_ordering_optional) {		wrapper->type = order->type;		crm_debug_2("Changing an %s ordering into %s for action %d",			    ordering_type2text(wrapper->type),			    ordering_type2text(order->type), lh_action->id);			} else if(wrapper && wrapper->type != pe_ordering_manditory) {		pe_err("Unknown type (%d) for action %d",		       wrapper->type, lh_action->id);	}	if(wrapper) {		return;	}		crm_malloc0(wrapper, sizeof(action_wrapper_t));	if(wrapper != NULL) {		wrapper->action = rh_action;		wrapper->type = order->type;				list = lh_action->actions_after;		list = g_list_append(list, wrapper);		lh_action->actions_after = list;		wrapper = NULL;	}		crm_malloc0(wrapper, sizeof(action_wrapper_t));	if(wrapper != NULL) {		wrapper->action = lh_action;		wrapper->type = order->type;		list = rh_action->actions_before;		list = g_list_append(list, wrapper);		rh_action->actions_before = list;	}}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/30b69aa0ec9a0b9f92425e506c4644630504e1f5/complex.c/clean/crm/pengine/complex.c