]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/init.c
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_5
[openldap] / servers / slapd / init.c
index f134903f35f9eb5b2f8c3a268fad46c690cd0a06..c222e40c73fbc4c7936c9f3487d4b7a8192ff5a0 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2013 The OpenLDAP Foundation.
+ * Copyright 1998-2014 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -59,7 +59,8 @@ BerVarray default_referral = NULL;
  * global variables that need mutex protection
  */
 ldap_pvt_thread_pool_t connection_pool;
-int                    connection_pool_max = SLAP_MAX_WORKER_THREADS;
+int            connection_pool_max = SLAP_MAX_WORKER_THREADS;
+int            connection_pool_queues = 1;
 int            slap_tool_thread_max = 1;
 
 slap_counters_t                        slap_counters, *slap_counters_list;
@@ -135,8 +136,8 @@ slap_init( int mode, const char *name )
 
                slap_name = name;
 
-               ldap_pvt_thread_pool_init( &connection_pool,
-                               connection_pool_max, 0);
+               ldap_pvt_thread_pool_init_q( &connection_pool,
+                               connection_pool_max, 0, connection_pool_queues);
 
                slap_counters_init( &slap_counters );