From f1a03b21e895f552964a2551bc2ada4cf301fb58743f93c204615f50594f8a86 Mon Sep 17 00:00:00 2001 From: Yan Gao Date: Mon, 5 May 2014 10:01:46 +0000 Subject: [PATCH] Update pacemaker-colocated-utilization.patch to fix build OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/pacemaker?expand=0&rev=131 --- pacemaker-colocated-utilization.patch | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pacemaker-colocated-utilization.patch b/pacemaker-colocated-utilization.patch index b6a42f7..99a7ade 100644 --- a/pacemaker-colocated-utilization.patch +++ b/pacemaker-colocated-utilization.patch @@ -84,8 +84,12 @@ Index: pacemaker/pengine/native.c gboolean is_enough; }; -@@ -95,27 +95,119 @@ check_capacity(gpointer key, gpointer va - CRM_ASSERT(data->rsc); +@@ -95,30 +95,122 @@ check_capacity(gpointer key, gpointer va + remaining = crm_parse_int(g_hash_table_lookup(data->node->details->utilization, key), "0"); + + if (required > remaining) { +- CRM_ASSERT(data->rsc); ++ CRM_ASSERT(data->rsc_id); CRM_ASSERT(data->node); - pe_rsc_debug(data->rsc,