Skip to content
Permalink
Browse files
fixed #583 max_children to use default amount of thread_pool workers …
…for value of 0
  • Loading branch information
tomatolog committed Nov 27, 2018
1 parent 238bdea commit 9ee5703f6c28f57cd5bff5e705966d93fe30d267
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/searchd.cpp
@@ -23966,7 +23966,7 @@ int WINAPI ServiceMain ( int argc, char **argv ) REQUIRES (!MainThread)
{
g_iThdQueueMax = hSearchd.GetInt ( "queue_max_length", g_iThdQueueMax );
g_iThdPoolCount = Max ( 3*sphCpuThreadsCount()/2, 2 ); // default to 1.5*detected_cores but not less than 2 worker threads
if ( hSearchd.Exists ( "max_children" ) && hSearchd["max_children"].intval()>=0 )
if ( hSearchd.Exists ( "max_children" ) && hSearchd["max_children"].intval()>0 )
g_iThdPoolCount = hSearchd["max_children"].intval();
g_pThdPool = sphThreadPoolCreate ( g_iThdPoolCount, "netloop", sError );
if ( !g_pThdPool )

0 comments on commit 9ee5703

Please sign in to comment.