HomeClusterLabs Projects

Refactor: scheduler: best practices for sort_promotable_instance()

Description

Refactor: scheduler: best practices for sort_promotable_instance()

Rename sort_promotable_instance() to cmp_promotable_instance() to indicate it's
a standard comparison function, drop an unused argument, and improve variable
names, comments, log messages, and formatting.

Drop the sort_rsc_index() internal API from libpe_status that was only used
here, since it boils down to a few lines.

Details

Provenance
kgaillotAuthored on May 12 2022, 6:16 PM
Parents
rPf59582edd813: Refactor: scheduler: pcmk__node_available() optionally checks guest
Branches
Unknown
Tags
Unknown