HomeClusterLabs Projects

Refactor: libpacemaker: Clean up pcmk__apply_coloc_to_priority()

Description

Refactor: libpacemaker: Clean up pcmk__apply_coloc_to_priority()

Move as much of the early return logic to the top as possible. Add
comments. Reduce variable scope. Ensure we log a trace message even if
we're setting the score to -INFINITY.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Jun 18 2024, 3:52 PM
Parents
rP7275eb263298: Test: cts-scheduler: Add tests for cloned group promoted colocations
Branches
Unknown
Tags
Unknown