summaryrefslogtreecommitdiff
path: root/sql/sys_vars.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2012-02-16 21:07:22 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2012-02-16 21:07:22 +0100
commitdabb963934cc1ca5abeb5a9c49f2574fdfedb2d2 (patch)
tree8d7380d3e798fe610caf98543172a3ccb28a2d8d /sql/sys_vars.cc
parent3fde590805dbd4955ea91de5a7a319c58c25cffc (diff)
downloadmariadb-git-dabb963934cc1ca5abeb5a9c49f2574fdfedb2d2.tar.gz
use poof-of-threads as default for thread_handling on Windows
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r--sql/sys_vars.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc
index 6e500737c1f..89f95ccf1ed 100644
--- a/sql/sys_vars.cc
+++ b/sql/sys_vars.cc
@@ -1814,6 +1814,14 @@ static const char *thread_handling_names[]=
#endif
0
};
+
+#ifdef _WIN32
+/* Windows is using OS threadpool, so we're pretty sure it works well */
+#define DEFAULT_THREAD_HANDLING 2
+#else
+#define DEFAULT_THREAD_HANDLING 0
+#endif
+
static Sys_var_enum Sys_thread_handling(
"thread_handling",
"Define threads usage for handling queries, one of "
@@ -1823,7 +1831,7 @@ static Sys_var_enum Sys_thread_handling(
#endif
, READ_ONLY GLOBAL_VAR(thread_handling), CMD_LINE(REQUIRED_ARG),
thread_handling_names,
- DEFAULT(0)
+ DEFAULT(DEFAULT_THREAD_HANDLING)
);
#ifdef HAVE_QUERY_CACHE