HomeClusterLabs Projects

Refactor: scheduler: expose instance number comparator in libpacemaker

Description

Refactor: scheduler: expose instance number comparator in libpacemaker

Modify sort_rsc_id() to be usable with either clones or bundles, and move it
from pcmk_sched_clone.c to pcmk_sched_resource.c to indicate that.

Also, rename it to pcmk__cmp_instance_number() for clarity, add a doxygen
block, add a sanity check on strrchr() results, and simplify the code a bit.

Details

Provenance
kgaillotAuthored on Jun 14 2022, 4:51 PM
Parents
rPb30beaf9f86a: Refactor: scheduler: best practices when sorting instances
Branches
Unknown
Tags
Unknown