From 640f33a26759bc0c06b460b805c9267f3bca3e34 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 17 Nov 2005 11:25:48 +0000 Subject: [PATCH] Fix threads vs tool_threads settings --- servers/slapd/bconfig.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.5