HomeClusterLabs Projects

Refactor: scheduler: functionize finding resources matching ID

Description

Refactor: scheduler: functionize finding resources matching ID

Previously, find_rsc_list() was a recursive function where the original caller
passed NULL as the first two arguments, and then recursive calls would use
those.

Separate the functionality for the original call into its own function
pcmk__rscs_matching_id(), to simplify the caller and make it more obvious what
functionality is actually recursive.

Details

Provenance
kgaillotAuthored on Jan 7 2022, 1:42 PM
Parents
rPcc741b7eca02: Refactor: scheduler: best practices when checking resource agent definition
Branches
Unknown
Tags
Unknown

Event Timeline