HomeClusterLabs Projects

Refactor: scheduler: remove dead code

Description

Refactor: scheduler: remove dead code

sort_instance_by_colocation() creates hash tables with one node each,
and then previously sorted the tables (which is meaningless since they only
have one node) and compared every node in them (which is redundant because the
only nodes have already been compared).

This appears to have been the case since the code was introduced in 5e7dc9f7,
apparently as a copy-paste error. All regression tests still pass, including
bug-lf-2160 added for that commit.

Details

Provenance
kgaillotAuthored on May 9 2022, 3:49 PM
Parents
rP2e4fbf24c3a4: Test: cts-scheduler: update scores for instance number change
Branches
Unknown
Tags
Unknown