From: Howard Chu Date: Thu, 27 Oct 2005 21:55:18 +0000 (+0000) Subject: Fix pool_submit, create threads as long as we're under the max count. X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~186 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=71514ffb925a724d79685571c238c1339f07ac44;p=openldap Fix pool_submit, create threads as long as we're under the max count. --- diff --git a/libraries/libldap_r/tpool.c b/libraries/libldap_r/tpool.c index f421090023..9a0ed4d884 100644 --- a/libraries/libldap_r/tpool.c +++ b/libraries/libldap_r/tpool.c @@ -368,13 +368,8 @@ ldap_pvt_thread_pool_submit ( return(0); } ldap_pvt_thread_cond_signal(&pool->ltp_cond); - if ((pool->ltp_open_count <= 0 -#if 0 - || pool->ltp_pending_count > 1 -#endif - || pool->ltp_open_count == pool->ltp_active_count) - && (pool->ltp_max_count <= 0 - || pool->ltp_open_count < pool->ltp_max_count)) + if (pool->ltp_max_count <= 0 + || pool->ltp_open_count < pool->ltp_max_count) { pool->ltp_open_count++; pool->ltp_starting++;