mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
initialize the connection_pool in server mode only
This commit is contained in:
parent
c002351982
commit
2f366c3a52
1 changed files with 2 additions and 3 deletions
|
|
@ -122,6 +122,8 @@ slap_init( int mode, const char *name )
|
||||||
|
|
||||||
switch ( slapMode & SLAP_MODE ) {
|
switch ( slapMode & SLAP_MODE ) {
|
||||||
case SLAP_SERVER_MODE:
|
case SLAP_SERVER_MODE:
|
||||||
|
ldap_pvt_thread_pool_init( &connection_pool,
|
||||||
|
connection_pool_max, 0);
|
||||||
|
|
||||||
/* FALLTHRU */
|
/* FALLTHRU */
|
||||||
case SLAP_TOOL_MODE:
|
case SLAP_TOOL_MODE:
|
||||||
|
|
@ -132,9 +134,6 @@ slap_init( int mode, const char *name )
|
||||||
|
|
||||||
slap_name = 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( &entry2str_mutex );
|
||||||
ldap_pvt_thread_mutex_init( &replog_mutex );
|
ldap_pvt_thread_mutex_init( &replog_mutex );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue