Blame SOURCES/bz1070916-pcmk-crmd_gracefully_handle_actions_that_cannot_be_initiated.patch

7100e8
commit d7874e2b5e9072faac3655196f20a3f5d4880d36
7100e8
Author: Andrew Beekhof <andrew@beekhof.net>
7100e8
Date:   Wed Aug 7 09:10:15 2013 +1000
7100e8
7100e8
    Fix: crmd: Gracefully handle actions that cannot be initiated
7100e8
    
7100e8
    (cherry picked from commit f02d6676bad129bee7175f31e810cf15f4786b70)
7100e8
7100e8
diff --git a/lib/transition/graph.c b/lib/transition/graph.c
7100e8
index 401a976..1965dde 100644
7100e8
--- a/lib/transition/graph.c
7100e8
+++ b/lib/transition/graph.c
7100e8
@@ -363,8 +363,13 @@ run_graph(crm_graph_t * graph)
7100e8
         } else if (should_fire_synapse(synapse)) {
7100e8
             crm_trace("Synapse %d fired", synapse->id);
7100e8
             graph->fired++;
7100e8
-            CRM_CHECK(fire_synapse(graph, synapse), stat_log_level = LOG_ERR;
7100e8
-                      graph->abort_priority = INFINITY; graph->incomplete++; graph->fired--);
7100e8
+            if(fire_synapse(graph, synapse) == FALSE) {
7100e8
+                crm_err("Synapse %d failed to fire", synapse->id);
7100e8
+                stat_log_level = LOG_ERR;
7100e8
+                graph->abort_priority = INFINITY;
7100e8
+                graph->incomplete++;
7100e8
+                graph->fired--;
7100e8
+            }
7100e8
 
7100e8
             if (synapse->confirmed == FALSE) {
7100e8
                 graph->pending++;