Browse Source

Ticket 48043 - use nunc-stans config initializer

Description:  Use the nunc-stans thread pool config initializer before
              creating a new thread pool.

https://fedorahosted.org/389/ticket/48043

Reviewed by: rmeggins(Thanks!)
Mark Reynolds 10 years ago
parent
commit
efe42b4740
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ldap/servers/slapd/daemon.c

+ 2 - 0
ldap/servers/slapd/daemon.c

@@ -1498,6 +1498,8 @@ void slapd_daemon( daemon_ports_t *ports )
 			maxthreads = atoi(getenv("MAX_THREADS"));
 		}
 		/* Set the nunc-stans thread pool config */
+		ns_thrpool_config_init(&tp_config);
+
 		tp_config.initial_threads = maxthreads;
 		tp_config.max_threads = maxthreads;
 		tp_config.stacksize = 0;