Commit e94a43da authored by unknown's avatar unknown

Slightly better way to handle max_connections for embedded server.

parent 6135a547
......@@ -1175,12 +1175,13 @@ static int pbxt_init(void *p)
* +1 Temporary thread (e.g. TempForClose, TempForEnd)
*/
#ifndef DRIZZLED
#ifdef EMBEDDED_LIBRARY
pbxt_max_threads = 100;
#else
if (pbxt_max_threads == 0)
pbxt_max_threads = max_connections + 7;
#endif
if (pbxt_max_threads == 0) {
// Embedded server sets max_connections=1
if (max_connections > 1)
pbxt_max_threads = max_connections + 7;
else
pbxt_max_threads = 100;
}
#endif
self = xt_init_threading(pbxt_max_threads); /* Create the main self: */
if (!self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment