Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.6:Update
pacemaker
pacemaker#3415-0001-Log-scheduler-correctly-log...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker#3415-0001-Log-scheduler-correctly-log-resource-IDs-of-the-depr.patch of Package pacemaker
From d381958755ecf4806e178259619049d1f42848fb Mon Sep 17 00:00:00 2001 From: "Gao,Yan" <ygao@suse.com> Date: Mon, 8 Apr 2024 16:01:00 +0200 Subject: [PATCH] Log: scheduler: correctly log resource IDs of the deprecated classes Previously a resource ID would be always logged as "(null)" since it was not assigned a value yet. --- lib/pengine/complex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pengine/complex.c b/lib/pengine/complex.c index d933d6db4..322f153f3 100644 --- a/lib/pengine/complex.c +++ b/lib/pengine/complex.c @@ -703,10 +703,6 @@ pe__unpack_resource(xmlNode *xml_obj, pcmk_resource_t **rsc, return pcmk_rc_unpack_error; } -#ifndef PCMK__COMPAT_2_0 - warn_about_deprecated_classes(*rsc); -#endif - (*rsc)->meta = pcmk__strkey_table(free, free); (*rsc)->allowed_nodes = pcmk__strkey_table(NULL, free); (*rsc)->known_on = pcmk__strkey_table(NULL, free); @@ -720,6 +716,10 @@ pe__unpack_resource(xmlNode *xml_obj, pcmk_resource_t **rsc, (*rsc)->id = strdup(id); } +#ifndef PCMK__COMPAT_2_0 + warn_about_deprecated_classes(*rsc); +#endif + (*rsc)->fns = &resource_class_functions[(*rsc)->variant]; get_meta_attributes((*rsc)->meta, *rsc, NULL, scheduler); -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor