Skip to content
Snippets Groups Projects
Commit 2f366c3a authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

initialize the connection_pool in server mode only

parent c0023519
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment