From: Howard Chu Date: Fri, 1 Jul 2005 01:36:49 +0000 (+0000) Subject: ITS#3793 don't init thread pool in tool mode X-Git-Tag: OPENLDAP_AC_BP~477 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ec474db25092c28a5259ff7190e516fdf2f88f2;p=openldap ITS#3793 don't init thread pool in tool mode --- diff --git a/servers/slapd/init.c b/servers/slapd/init.c index 91c699efc7..510f58b0d0 100644 --- a/servers/slapd/init.c +++ b/servers/slapd/init.c @@ -103,18 +103,18 @@ slap_init( int mode, const char *name ) switch ( slapMode & SLAP_MODE ) { case SLAP_SERVER_MODE: + ldap_pvt_thread_pool_init( &connection_pool, + connection_pool_max, 0); + + /* FALLTHRU */ case SLAP_TOOL_MODE: Debug( LDAP_DEBUG_TRACE, "%s init: initiated %s.\n", name, (mode & SLAP_MODE) == SLAP_TOOL_MODE ? "tool" : "server", 0 ); - slap_name = name; - ldap_pvt_thread_pool_init( &connection_pool, - connection_pool_max, 0); - ldap_pvt_thread_mutex_init( &entry2str_mutex ); ldap_pvt_thread_mutex_init( &replog_mutex );