]> git.sur5r.net Git - openldap/commitdiff
initialize the connection_pool in server mode only
authorPierangelo Masarati <ando@openldap.org>
Fri, 31 Mar 2006 23:04:13 +0000 (23:04 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 31 Mar 2006 23:04:13 +0000 (23:04 +0000)
servers/slapd/init.c

index 7496dc42f618a26804b3b0fba5994ef893dadafa..5ee2f1d934093105e55b04c50e4afbefd8874d67 100644 (file)
@@ -122,6 +122,8 @@ 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:
@@ -132,9 +134,6 @@ slap_init( int mode, const char *name )
 
                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 );