HomeClusterLabs Projects

Refactor: scheduler: add pcmk__insert_meta()

Description

Refactor: scheduler: add pcmk__insert_meta()

add_hash_param() adds a meta-attribute value only if none yet exists.
However, most of its callers appear to assume that existing values will be
replaced, so define a new macro pcmk__insert_meta() for that purpose.

Details

Provenance
kgaillotAuthored on May 25 2023, 2:21 PM
Parents
rPdc9854cdb395: Refactor: various: assert on memory errors for hash table keys/values
Branches
Unknown
Tags
Unknown