HomeClusterLabs Projects

Refactor: scheduler: always preserve local node name

Description

Refactor: scheduler: always preserve local node name

set_working_set_defaults() zeroes out the scheduler object, preserving only a
few specific members. Previously, unpack_cib() would preserve localhost.
However, the local node name never changes during the lifetime of a scheduler
object, and set_working_set_defaults() can be called via other paths (most
importantly cleanup_calculations()), so preserve localhost in
set_working_set_defaults() instead.

Details

Provenance
kgaillotAuthored on Jul 8 2024, 3:10 PM
Parents
rPd09696881221: API: libcrmcommon: drop pcmk_scheduler_t localhost member
Branches
Unknown
Tags
Unknown