HomeClusterLabs Projects

Refactor: libpacemaker: Pass NULL input in pcmk__simulate()

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Refactor: libpacemaker: Pass NULL input in pcmk__simulate()

...to pcmk__schedule_actions().

When pcmkschedule_actions() is called, cluster_status() has already
set the pcmk
sched_have_status flag. So unpack_cib() doesn't reset the
scheduler or set scheduler->input; it only sets the given flags.

There's also no longer any reason to pass flags, since
pcmk__schedule_actions() is no longer resetting the scheduler. The
existing flags will be kept.

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, 3:23 AM

Commit No Longer Exists

This commit no longer exists in the repository.