HomeClusterLabs Projects

Refactor: libpacemaker: Create scheduler object in pcmk__profile_dir()
c214cacafb1cUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: libpacemaker: Create scheduler object in pcmk__profile_dir()

The only caller is crm_simulate. This makes the profile_file() helper
easier to reason about, by guaranteeing certain properties of the
scheduler object. (It was created in pcmk__profile_dir(), the sole
caller of profile_file(), so it's easy to see that it has no relevant
state except two potential flags.)

Note that we're now able to drop the scheduler flag setting from
crm_simulate. The only other function that uses this scheduler object is
pcmk__simulate(). The first thing it does is set scheduler flags based
on the pcmk_sim_flags (via the reset() helper), making the sets in
crm_simulate redundant.

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

Details

Provenance
nrwahl2Authored on Jan 24 2025, 5:28 PM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.