mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Fix prev commit, spawns unnecessary threads.
This commit is contained in:
parent
970ccf9584
commit
f80e9d11fa
1 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue