File bug-950450_pacemaker-crmd-update-fail-count.patch of Package pacemaker.9287

commit ea70ac78c06455503f7d997a49df1a09a57e307b
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Wed Apr 22 20:08:54 2015 -0400

    Fix: crmd: don't update fail count twice for same failure
    
    The fail count will be updated in process_graph_event()
    for any code path that takes us here, so this is redundant
    and results in fail count being incremented twice for cases
    where it should be incremented once.

diff --git a/crmd/te_events.c b/crmd/te_events.c
index 7839eca..5ffe294 100644
--- a/crmd/te_events.c
+++ b/crmd/te_events.c
@@ -305,9 +305,6 @@ match_graph_event(int action_id, xmlNode * event, const char *event_node,
     }
 
     op_status = status_from_rc(action, op_status, op_rc, target_rc);
-    if (op_status != PCMK_LRM_OP_DONE) {
-        update_failcount(event, event_node, op_rc, target_rc, FALSE);
-    }
 
     /* Process OP status */
     switch (op_status) {
openSUSE Build Service is sponsored by