]> git.proxmox.com Git - pve-ha-manager.git/commit - src/PVE/HA/LRM.pm
replace can_fork with get_max_workers
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 10 Feb 2016 10:58:24 +0000 (11:58 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 11 Feb 2016 09:03:47 +0000 (10:03 +0100)
commita28fa3301e09a940cd6df26ed8150b3e9a1e62f5
tree8ad2ceb48272e0244af3c03b4f20bd658f152bc2
parent331a9f0053c6df85d2a91d6321606fb445d309e8
replace can_fork with get_max_workers

This patch implements the use of the new max_workers setting from
the datacenter.cfg.

Adding a 'get_max_worker' method to the enviornment allows us to
do that and to replace 'can_fork' with that method.

can_fork isn't needed anymore as get_max_worker may simply return 0
to signal that the respective enviornment can not fork.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Env.pm
src/PVE/HA/Env/PVE2.pm
src/PVE/HA/LRM.pm
src/PVE/HA/Sim/Env.pm
src/PVE/HA/Sim/TestEnv.pm