HomeClusterLabs Projects

Low: scheduler: compare instance numbers not IDs for assignment order

Description

Low: scheduler: compare instance numbers not IDs for assignment order

pcmkcmp_instance() as a final check used strcmp() on the instance IDs.
However this would result in e.g. rsc:10 sorting before rsc:2. Use
pcmk
cmp_instance_number() instead.

Details

Provenance
kgaillotAuthored on Jun 14 2022, 4:54 PM
Parents
rPc7de34ec3513: Refactor: scheduler: expose instance number comparator in libpacemaker
Branches
Unknown
Tags
Unknown