HomeClusterLabs Projects

Refactor: libpe_status: make clone unpack more efficient

Description

Refactor: libpe_status: make clone unpack more efficient

Previously, when unpacking clone resource history, we would loop through all
possible clone instances until we found an instance active on the node, and
then if not found, we would loop through all possible instances again until we
found an inactive instance we could assign to the node.

Now, we only loop through the instances once, remembering the first inactive
instance. If we end up not finding an active instance, we return the remembered
inactive instance.

Details

Provenance
kgaillotAuthored on May 24 2018, 2:44 PM
Parents
rPb4c8904a4964: Low: scheduler: avoid unnecessary delay of start actions
Branches
Unknown
Tags
Unknown

Event Timeline