MXS-1815: Use all available CPUs with threads=auto
The documentation stated that all CPUs would be used when threads=auto was used. In reality the behavior was the same as was with 2.0 (number of CPUs minus one).
This commit is contained in:
@ -1433,10 +1433,7 @@ handle_global_item(const char *name, const char *value)
|
|||||||
{
|
{
|
||||||
if (strcmp(value, CN_AUTO) == 0)
|
if (strcmp(value, CN_AUTO) == 0)
|
||||||
{
|
{
|
||||||
if ((gateway.n_threads = get_processor_count()) > 1)
|
gateway.n_threads = get_processor_count();
|
||||||
{
|
|
||||||
gateway.n_threads--;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user