From 71514ffb925a724d79685571c238c1339f07ac44 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 27 Oct 2005 21:55:18 +0000 Subject: [PATCH] Fix pool_submit, create threads as long as we're under the max count. --- libraries/libldap_r/tpool.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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++; -- 2.39.5