HomeClusterLabs Projects

API: libpe_status: deprecate cleanup_calculations()

Description

API: libpe_status: deprecate cleanup_calculations()

cleanup_calculations() is equivalent to pcmk_reset_scheduler() except
for not freeing ordering, location, or colocation constraints. However
it logged an assertion if location or ordering constraints were
non-NULL, and it called set_working_set_defaults() which would NULL the
constraint members without freeing them.

Therefore we can simply replace calls with pcmk_reset_scheduler().
There's no reason to ever zero constraints without freeing them.

Details

Provenance
kgaillotAuthored on Nov 12 2024, 2:59 PM
Parents
rPc519acec4f73: API: libpe_status: deprecate pe_reset_working_set()
Branches
Unknown
Tags
Unknown