mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 10:28:41 -05:00
Only use slot for provider management
This commit reverts thread assignment for check_pool to a per-pool basis. Without this change a set of threads is shared in a manner that is not guaranteed to be thread safe.
This commit is contained in:
parent
0a879dac59
commit
df6efccd3f
1 changed files with 1 additions and 1 deletions
|
|
@ -601,7 +601,7 @@ module Vmpooler
|
|||
|
||||
$providers[slot] ||= Vmpooler::VsphereHelper.new $config, $metrics
|
||||
|
||||
$threads[slot] = Thread.new do
|
||||
$threads[pool['name']] = Thread.new do
|
||||
_check_pool(pool, $providers[slot])
|
||||
end
|
||||
rescue => err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue