HomeClusterLabs Projects

Refactor: scheduler: improve efficiency when checking whether recurring should…

Description

Refactor: scheduler: improve efficiency when checking whether recurring should be optional

Previously, RecurringOp() performed a number of tests to decide whether a
recurring action for an active role should be optional or mandatory. It always
performed all these tests, regardless of whether a previous test had already
decided the question.

Now, functionize the check, which allows us to more efficiently short-circuit
once we have an answer.

This makes explicit the test for a NULL node that was previously implicit in
the call to find_actions_exact(), which allows a better trace message.

Details

Provenance
kgaillotAuthored on Jun 6 2022, 1:22 PM
Parents
rP4468d7bcfce2: Refactor: scheduler: RecurringOp() can assume rsc and start are not NULL
Branches
Unknown
Tags
Unknown