1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Bug#28785 thread-handling not displayed properly in SHOW VARIABLES

This commit is contained in:
dkatz@damien-katzs-computer.local
2007-11-14 16:12:46 -05:00
parent 6215991b4b
commit 2ed0d9ea21
4 changed files with 8 additions and 3 deletions

View File

@ -4,3 +4,6 @@ select 1+1;
select 1+2; select 1+2;
1+2 1+2
3 3
SHOW GLOBAL VARIABLES LIKE 'thread_handling';
Variable_name Value
thread_handling no-threads

View File

@ -3,3 +3,4 @@
# #
select 1+1; select 1+1;
select 1+2; select 1+2;
SHOW GLOBAL VARIABLES LIKE 'thread_handling';

View File

@ -7745,12 +7745,13 @@ mysqld_get_one_option(int optid,
break; break;
} }
case OPT_ONE_THREAD: case OPT_ONE_THREAD:
global_system_variables.thread_handling= 2; global_system_variables.thread_handling=
SCHEDULER_ONE_THREAD_PER_CONNECTION;
break; break;
case OPT_THREAD_HANDLING: case OPT_THREAD_HANDLING:
{ {
global_system_variables.thread_handling= global_system_variables.thread_handling=
find_type_or_exit(argument, &thread_handling_typelib, opt->name); find_type_or_exit(argument, &thread_handling_typelib, opt->name)-1;
break; break;
} }
case OPT_FT_BOOLEAN_SYNTAX: case OPT_FT_BOOLEAN_SYNTAX:

View File

@ -40,7 +40,7 @@ public:
enum scheduler_types enum scheduler_types
{ {
SCHEDULER_ONE_THREAD_PER_CONNECTION=1, SCHEDULER_ONE_THREAD_PER_CONNECTION=0,
SCHEDULER_NO_THREADS, SCHEDULER_NO_THREADS,
SCHEDULER_POOL_OF_THREADS SCHEDULER_POOL_OF_THREADS
}; };