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,