HomeClusterLabs Projects

Refactor: scheduler: drop dead code in pe_action_set_flag_reason()

Description

Refactor: scheduler: drop dead code in pe_action_set_flag_reason()

The function was designed to handle more cases in the future, but in
preparation for an overhaul, simplify it to handle only current callers' cases.

All current callers pass a single flag that is either pe_action_optional,
pe_action_runnable, or pe_action_migrate_runnable, and no caller sets both
reason and text.

Details

Provenance
kgaillotAuthored on Jul 23 2021, 5:05 PM
Parents
rP9dd82589dc6f: Log: scheduler: improve trace messages when updating actions
Branches
Unknown
Tags
Unknown

Event Timeline