]> git.sur5r.net Git - openldap/commitdiff
Fix threads vs tool_threads settings
authorHoward Chu <hyc@openldap.org>
Thu, 17 Nov 2005 11:25:48 +0000 (11:25 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 17 Nov 2005 11:25:48 +0000 (11:25 +0000)
servers/slapd/bconfig.c

index ca571b70e0cca963db2a26f5bb2c7b5a0c1e662b..688d6e815bf3a65455e9c209c897f070fd0626d9 100644 (file)
@@ -1067,12 +1067,14 @@ config_generic(ConfigArgs *c) {
                        break;
 
                case CFG_THREADS:
-                       ldap_pvt_thread_pool_maxthreads(&connection_pool, c->value_int);
+                       if ( slapMode & SLAP_SERVER_MODE )
+                               ldap_pvt_thread_pool_maxthreads(&connection_pool, c->value_int);
                        connection_pool_max = c->value_int;     /* save for reference */
                        break;
 
                case CFG_TTHREADS:
-                       ldap_pvt_thread_pool_maxthreads(&connection_pool, c->value_int);
+                       if ( slapMode & SLAP_TOOL_MODE )
+                               ldap_pvt_thread_pool_maxthreads(&connection_pool, c->value_int);
                        slap_tool_thread_max = c->value_int;    /* save for reference */
                        break;