HomeClusterLabs Projects

Refactor: scheduler: assume only one anonymous instance location

Description

Refactor: scheduler: assume only one anonymous instance location

find_anonymous_clone() checks for all locations where a particular clone
instance is active. Previously, we would loop through this list. However,
a particular instance can only ever be active on one node (regardless of
what the history looks like, because we ignore any instance numbers in history
of anonymous clones). So now, we log an assertion if the list has more than one
member.

Details

Provenance
kgaillotAuthored on Jul 5 2018, 3:15 PM
Parents
rP0760ba22b99c: Low: scheduler: avoid use-after-free when on-fail=block
Branches
Unknown
Tags
Unknown

Event Timeline