From 2c6d27d600a956f25bfd4c8d623e54a1401acf87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 20 Apr 2018 12:59:28 +0300 Subject: [PATCH] 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). --- server/core/config.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/core/config.cc b/server/core/config.cc index b2b8399f8..ff41c2875 100644 --- a/server/core/config.cc +++ b/server/core/config.cc @@ -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 {