File pacemaker-libpengine-dont-double-score-adding-first-allowed-node.patch of Package pacemaker.14737

commit c9dcc29b1e9b77c87c6f6a653969f3f7ecb81e91
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Fri May 19 18:28:48 2017 -0500

    Low: libpengine: don't double score when adding first allowed node
    
    Not usually a problem in practice because first score added in a
    symmetric cluster is 0

diff --git a/lib/pengine/utils.c b/lib/pengine/utils.c
index 9e47f037b..16687e008 100644
--- a/lib/pengine/utils.c
+++ b/lib/pengine/utils.c
@@ -1299,7 +1299,6 @@ resource_node_score(resource_t * rsc, node_t * node, int score, const char *tag)
     match = pe_hash_table_lookup(rsc->allowed_nodes, node->details->id);
     if (match == NULL) {
         match = node_copy(node);
-        match->weight = merge_weights(score, node->weight);
         g_hash_table_insert(rsc->allowed_nodes, (gpointer) match->details->id, match);
     }
     match->weight = merge_weights(match->weight, score);
openSUSE Build Service is sponsored by