瀏覽代碼

Ticket #48339 - Share nsslapd-threadnumber in the case nunc-stans is enabled, as well.

Description:  When nunc-stans is enabled, instead of getting the
thread number from the environment variable MAX_THREADS, use the
value of config parameter nsslapd-threadnumber.

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

Reviewed by [email protected] (Thank you, Rich!!)
Noriko Hosoi 10 年之前
父節點
當前提交
ab8ed9a5eb
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      ldap/servers/slapd/daemon.c

+ 1 - 4
ldap/servers/slapd/daemon.c

@@ -1199,10 +1199,7 @@ void slapd_daemon( daemon_ports_t *ports )
 #ifdef ENABLE_NUNC_STANS
 	if (enable_nunc_stans && !g_get_shutdown()) {
 		int ii;
-		PRInt32 maxthreads = 3;
-		if (getenv("MAX_THREADS")) {
-			maxthreads = atoi(getenv("MAX_THREADS"));
-		}
+		PRInt32 maxthreads = (PRInt32)config_get_threadnumber();
 		/* Set the nunc-stans thread pool config */
 		ns_thrpool_config_init(&tp_config);