Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
efe42b4740
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;