HomeClusterLabs Projects

API: libpe_status: deprecate cleanup_calculations()
4854118c8152Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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
rP68e79b906853: API: libpe_status: deprecate pe_reset_working_set()
Branches
Unknown
Tags
Unknown

Event Timeline