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:
parent
3d325e29c4
commit
2c6d27d600
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user