HomeClusterLabs Projects

Refactor: scheduler: best practices for group_internal_constraints()

Description

Refactor: scheduler: best practices for group_internal_constraints()

Rename group_internal_constraints() to pcmk__group_internal_constraints(),
declare in library-private header, add a doxygen block, assert for invalid
argument, and improve comments and formatting.

Also, a stop ordering is moved for readability. This theoretically could
have some obscure side effects if the relevant actions have not already been
created, but stops should have been created already, and no regression tests
change, so it is highly unlikely that it matters in this case.

Details

Provenance
kgaillotAuthored on Sep 27 2022, 1:14 PM
Parents
rP38836a28467b: Refactor: scheduler: functionize group member internal constraints
Branches
Unknown
Tags
Unknown