From: Howard Chu Date: Thu, 17 Nov 2005 11:25:48 +0000 (+0000) Subject: Fix threads vs tool_threads settings X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~793 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=640f33a26759bc0c06b460b805c9267f3bca3e34;p=openldap Fix threads vs tool_threads settings --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index ca571b70e0..688d6e815b 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -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;