synapse 51 crmd/te_events.c synapse_t *synapse = (synapse_t *) gIter->data; synapse 53 crmd/te_events.c if (synapse->confirmed || synapse->failed) { synapse 58 crmd/te_events.c gIter2 = synapse->actions; synapse 83 crmd/te_events.c synapse->failed = TRUE; synapse 88 crmd/te_events.c if (synapse->executed) { synapse 310 crmd/te_events.c abort_transition(action->synapse->priority + 1, tg_restart, "Event failed", event); synapse 327 crmd/te_events.c synapse_t *synapse = (synapse_t *) gIter->data; synapse 329 crmd/te_events.c gIter2 = synapse->actions; synapse 354 crmd/te_events.c synapse_t *synapse = (synapse_t *) gIter->data; synapse 356 crmd/te_events.c gIter2 = synapse->actions; synapse 139 crmd/te_utils.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 141 crmd/te_utils.c if (synapse->confirmed) { synapse 145 crmd/te_utils.c for (lpc2 = synapse->actions; lpc2 != NULL; lpc2 = lpc2->next) { synapse 55 include/crm/transition.h synapse_t *synapse; synapse 31 lib/transition/graph.c update_synapse_ready(synapse_t * synapse, int action_id) synapse 36 lib/transition/graph.c CRM_CHECK(synapse->executed == FALSE, return FALSE); synapse 37 lib/transition/graph.c CRM_CHECK(synapse->confirmed == FALSE, return FALSE); synapse 39 lib/transition/graph.c synapse->ready = TRUE; synapse 40 lib/transition/graph.c for (lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 46 lib/transition/graph.c crm_trace("Marking input %d of synapse %d confirmed", action_id, synapse->id); synapse 51 lib/transition/graph.c synapse->ready = FALSE; synapse 57 lib/transition/graph.c crm_trace("Updated synapse %d", synapse->id); synapse 63 lib/transition/graph.c update_synapse_confirmed(synapse_t * synapse, int action_id) synapse 69 lib/transition/graph.c CRM_CHECK(synapse->executed, return FALSE); synapse 70 lib/transition/graph.c CRM_CHECK(synapse->confirmed == FALSE, return TRUE); synapse 73 lib/transition/graph.c for (lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 79 lib/transition/graph.c crm_trace("Confirmed: Action %d of Synapse %d", action_id, synapse->id); synapse 85 lib/transition/graph.c crm_trace("Synapse %d still not confirmed after action %d", synapse->id, action_id); synapse 89 lib/transition/graph.c if (is_confirmed && synapse->confirmed == FALSE) { synapse 90 lib/transition/graph.c crm_trace("Confirmed: Synapse %d", synapse->id); synapse 91 lib/transition/graph.c synapse->confirmed = TRUE; synapse 96 lib/transition/graph.c crm_trace("Updated synapse %d", synapse->id); synapse 109 lib/transition/graph.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 111 lib/transition/graph.c if (synapse->confirmed || synapse->failed) { synapse 114 lib/transition/graph.c } else if (synapse->executed) { synapse 116 lib/transition/graph.c rc = update_synapse_confirmed(synapse, action->id); synapse 118 lib/transition/graph.c } else if (action->failed == FALSE || synapse->priority == INFINITY) { synapse 119 lib/transition/graph.c rc = update_synapse_ready(synapse, action->id); synapse 131 lib/transition/graph.c should_fire_synapse(crm_graph_t * graph, synapse_t * synapse) synapse 135 lib/transition/graph.c CRM_CHECK(synapse->executed == FALSE, return FALSE); synapse 136 lib/transition/graph.c CRM_CHECK(synapse->confirmed == FALSE, return FALSE); synapse 138 lib/transition/graph.c crm_trace("Checking pre-reqs for synapse %d", synapse->id); synapse 140 lib/transition/graph.c synapse->ready = TRUE; synapse 141 lib/transition/graph.c for (lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 146 lib/transition/graph.c crm_trace("Input %d for synapse %d not satisfied: not confirmed", prereq->id, synapse->id); synapse 147 lib/transition/graph.c synapse->ready = FALSE; synapse 150 lib/transition/graph.c crm_trace("Input %d for synapse %d not satisfied: failed", prereq->id, synapse->id); synapse 151 lib/transition/graph.c synapse->ready = FALSE; synapse 156 lib/transition/graph.c for (lpc = synapse->actions; synapse->ready && lpc != NULL; lpc = lpc->next) { synapse 162 lib/transition/graph.c } else if (synapse->priority < graph->abort_priority) { synapse 163 lib/transition/graph.c crm_trace("Skipping synapse %d: abort level %d", synapse->id, graph->abort_priority); synapse 168 lib/transition/graph.c crm_trace("Deferring synapse %d: allowed", synapse->id); synapse 173 lib/transition/graph.c return synapse->ready; synapse 215 lib/transition/graph.c fire_synapse(crm_graph_t * graph, synapse_t * synapse) synapse 219 lib/transition/graph.c CRM_CHECK(synapse != NULL, return FALSE); synapse 220 lib/transition/graph.c CRM_CHECK(synapse->ready, return FALSE); synapse 221 lib/transition/graph.c CRM_CHECK(synapse->confirmed == FALSE, return TRUE); synapse 223 lib/transition/graph.c crm_trace("Synapse %d fired", synapse->id); synapse 224 lib/transition/graph.c synapse->executed = TRUE; synapse 225 lib/transition/graph.c for (lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 235 lib/transition/graph.c crm_element_name(action->xml), action->id, synapse->id); synapse 236 lib/transition/graph.c synapse->confirmed = TRUE; synapse 271 lib/transition/graph.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 273 lib/transition/graph.c if (synapse->confirmed) { synapse 274 lib/transition/graph.c crm_trace("Synapse %d complete", synapse->id); synapse 277 lib/transition/graph.c } else if (synapse->failed == FALSE && synapse->executed) { synapse 278 lib/transition/graph.c crm_trace("Synapse %d: confirmation pending", synapse->id); synapse 285 lib/transition/graph.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 290 lib/transition/graph.c } else if (synapse->failed) { synapse 294 lib/transition/graph.c } else if (synapse->confirmed || synapse->executed) { synapse 299 lib/transition/graph.c if (should_fire_synapse(graph, synapse)) { synapse 300 lib/transition/graph.c crm_trace("Synapse %d fired", synapse->id); synapse 302 lib/transition/graph.c if(fire_synapse(graph, synapse) == FALSE) { synapse 303 lib/transition/graph.c crm_err("Synapse %d failed to fire", synapse->id); synapse 310 lib/transition/graph.c if (synapse->confirmed == FALSE) { synapse 315 lib/transition/graph.c crm_trace("Synapse %d cannot fire", synapse->id); synapse 53 lib/transition/unpack.c action->synapse = parent; synapse 187 lib/transition/unpack.c xmlNode *synapse = NULL; synapse 229 lib/transition/unpack.c for (synapse = __xml_first_child(xml_graph); synapse != NULL; synapse = __xml_next(synapse)) { synapse 230 lib/transition/unpack.c if (crm_str_eq((const char *)synapse->name, "synapse", TRUE)) { synapse 231 lib/transition/unpack.c synapse_t *new_synapse = unpack_synapse(new_graph, synapse); synapse 261 lib/transition/unpack.c destroy_synapse(synapse_t * synapse) synapse 263 lib/transition/unpack.c while (g_list_length(synapse->actions) > 0) { synapse 264 lib/transition/unpack.c crm_action_t *action = g_list_nth_data(synapse->actions, 0); synapse 266 lib/transition/unpack.c synapse->actions = g_list_remove(synapse->actions, action); synapse 270 lib/transition/unpack.c while (g_list_length(synapse->inputs) > 0) { synapse 271 lib/transition/unpack.c crm_action_t *action = g_list_nth_data(synapse->inputs, 0); synapse 273 lib/transition/unpack.c synapse->inputs = g_list_remove(synapse->inputs, action); synapse 276 lib/transition/unpack.c free(synapse); synapse 286 lib/transition/unpack.c synapse_t *synapse = g_list_nth_data(graph->synapses, 0); synapse 288 lib/transition/unpack.c graph->synapses = g_list_remove(graph->synapses, synapse); synapse 289 lib/transition/unpack.c destroy_synapse(synapse); synapse 130 lib/transition/utils.c synapse_t *synapse = (synapse_t *) sIter->data; synapse 132 lib/transition/utils.c for (aIter = synapse->actions; aIter != NULL; aIter = aIter->next) { synapse 144 lib/transition/utils.c print_synapse(unsigned int log_level, crm_graph_t * graph, synapse_t * synapse) synapse 150 lib/transition/utils.c if (synapse->failed) { synapse 153 lib/transition/utils.c } else if (synapse->confirmed) { synapse 156 lib/transition/utils.c } else if (synapse->executed) { synapse 159 lib/transition/utils.c } else if (synapse->ready) { synapse 163 lib/transition/utils.c if (synapse->executed == FALSE) { synapse 164 lib/transition/utils.c for (lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 181 lib/transition/utils.c for (lpc = synapse->actions; lpc != NULL; lpc = lpc->next) { synapse 190 lib/transition/utils.c synapse->priority, pending ? pending : "none"); synapse 195 lib/transition/utils.c if (synapse->executed == FALSE) { synapse 196 lib/transition/utils.c for (lpc = synapse->inputs; lpc != NULL; lpc = lpc->next) { synapse 219 lib/transition/utils.c print_synapse(log_level, NULL, action->synapse); synapse 240 lib/transition/utils.c synapse_t *synapse = (synapse_t *) lpc->data; synapse 242 lib/transition/utils.c print_synapse(log_level, graph, synapse);