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:
Markus Mäkelä 2018-04-20 12:59:28 +03:00
parent 3d325e29c4
commit 2c6d27d600
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1433,10 +1433,7 @@ handle_global_item(const char *name, const char *value)
{
if (strcmp(value, CN_AUTO) == 0)
{
if ((gateway.n_threads = get_processor_count()) > 1)
{
gateway.n_threads--;
}
gateway.n_threads = get_processor_count();
}
else
{