mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix prev commit, spawns unnecessary threads.
This commit is contained in:
parent
970ccf9584
commit
f80e9d11fa
@ -368,8 +368,9 @@ ldap_pvt_thread_pool_submit (
|
||||
return(0);
|
||||
}
|
||||
ldap_pvt_thread_cond_signal(&pool->ltp_cond);
|
||||
if (pool->ltp_max_count <= 0
|
||||
|| pool->ltp_open_count < pool->ltp_max_count)
|
||||
if (pool->ltp_open_count < pool->ltp_active_count + pool->ltp_pending_count
|
||||
&& (pool->ltp_open_count < pool->ltp_max_count ||
|
||||
pool->ltp_max_count <= 0 ))
|
||||
{
|
||||
pool->ltp_open_count++;
|
||||
pool->ltp_starting++;
|
||||
|
Loading…
Reference in New Issue
Block a user