HomeClusterLabs Projects

Refactor: scheduler: best practices for allocate_instance()

Description

Refactor: scheduler: best practices for allocate_instance()

Rename allocate_instance() to assign_instance() for consistency, add a doxygen
block, drop redundant data_set argument, and improve log messages, comments,
variable names, and formatting.

Also, the callers only cared whether the returned node was NULL or not, so
change the return type to bool.

Details

Provenance
kgaillotAuthored on Jul 5 2022, 5:34 PM
Parents
rPe6d7eeeb1ca8: Refactor: scheduler: add parent colocations once to all instances
Branches
Unknown
Tags
Unknown