Skip to content

Instantly share code, notes, and snippets.

@nickmarden
Created May 23, 2012 17:40
Show Gist options
  • Save nickmarden/2776593 to your computer and use it in GitHub Desktop.
Save nickmarden/2776593 to your computer and use it in GitHub Desktop.
--- src/searchd.cpp.orig 2010-05-10 23:49:13.000000000 +0100
+++ src/searchd.cpp 2010-05-10 23:52:03.000000000 +0100
@@ -10224,7 +10224,11 @@
g_iClientTimeout = hSearchd["client_timeout"].intval();
if ( hSearchd.Exists ( "max_children" ) && hSearchd["max_children"].intval()>=0 )
+ {
g_iMaxChildren = hSearchd["max_children"].intval();
+ if ( g_iMaxChildren > 0 )
+ g_iPreforkChildren = g_iMaxChildren;
+ }
g_bPreopenIndexes = hSearchd.GetInt ( "preopen_indexes", (int)g_bPreopenIndexes )!=0;
g_bOnDiskDicts = hSearchd.GetInt ( "ondisk_dict_default", (int)g_bOnDiskDicts )!=0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment