HomeClusterLabs Projects

Refactor: tools: update_dataset() passes nulls to pcmk__schedule_actions

Description

Refactor: tools: update_dataset() passes nulls to pcmk__schedule_actions

Previously we were passing scheduler->input as the CIB argument, which
should be a no-op. And we were already explicitly setting the
pcmk__sched_no_counts flag.

pcmk__schedule_actions() has a use-after-free bug if its cib argument is
the same as the current scheduler->input (or if it's an ancestor or
descendant). This is another step toward dropping that argument.

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

Details

Provenance
nrwahl2Authored on Jan 25 2025, 4:24 AM
Parents
rPeae8f5b83265: Refactor: libpacemaker: Don't make unnecessary copy for scheduler input
Branches
Unknown
Tags
Unknown