HomeClusterLabs Projects

Test: scheduler: sort nodes when creating constraints

Description

Test: scheduler: sort nodes when creating constraints

We want to keep action ID numbers the same for regression test output
comparisons, so convert the allowed nodes hash table to a list before
creating actions while creating native constraints. Sort the list only
if printing to stdout, so the live cluster doesn't take the performance hit.

Details

Provenance
kgaillotAuthored on Feb 5 2019, 8:09 PM
Parents
rPe932fe73d8a1: Refactor: scheduler: mark some pointer arguments as constant
Branches
Unknown
Tags
Unknown

Event Timeline