]> git.sur5r.net Git - openldap/commitdiff
Fix pool_submit, create threads as long as we're under the max count.
authorHoward Chu <hyc@openldap.org>
Thu, 27 Oct 2005 21:55:18 +0000 (21:55 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 27 Oct 2005 21:55:18 +0000 (21:55 +0000)
libraries/libldap_r/tpool.c

index f4210900235df4ee68c791b1bea7951ac85642af..9a0ed4d884e3efeed41ee14ceceaf1580038821e 100644 (file)
@@ -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++;