if(te_fsa_state != s_in_transition) { int unconfirmed = unconfirmed_actions(); crm_info("Trigger from action %d (%d more) discarded:" " Not in transition", action_id, unconfirmed); if(unconfirmed == 0) { send_complete("Last pending action confirmed", NULL, te_abort_confirmed, i_cmd_complete); } return; }
process_trigger(int action_id) {	graph_complete = TRUE;		crm_debug_3("Processing trigger from action %d", action_id);	/* something happened, stop the timer and start it again at the end */	stop_te_timer(transition_timer);		slist_iter(		synapse, synapse_t, graph, lpc,				if(synapse->confirmed) {			crm_debug_3("Skipping confirmed synapse %d", synapse->id);			continue;		}				check_synapse_triggers(synapse, action_id);				fire_synapse(synapse);		if(graph == NULL) {			crm_err("Trigger processing aborted after failed synapse");			break;		}				crm_debug_3("Checking if %d is confirmed", synapse->id);		if(synapse->complete == FALSE) {			crm_debug_3("Found an incomplete synapse"				  " - transition not complete");			/* indicate that the transition is not yet complete */			graph_complete = FALSE;					} else if(synapse->confirmed == FALSE) {			gboolean confirmed = confirm_synapse(synapse,action_id);			graph_complete = graph_complete && confirmed;		}		crm_debug_3("%d is %s", synapse->id,			  synapse->confirmed?"confirmed":synapse->complete?"complete":"pending");				);}