Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2ed0d9ea
Commit
2ed0d9ea
authored
Nov 14, 2007
by
dkatz@damien-katzs-computer.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#28785 thread-handling not displayed properly in SHOW VARIABLES
parent
6215991b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
mysql-test/r/no-threads.result
mysql-test/r/no-threads.result
+3
-0
mysql-test/t/no-threads.test
mysql-test/t/no-threads.test
+1
-0
sql/mysqld.cc
sql/mysqld.cc
+3
-2
sql/scheduler.h
sql/scheduler.h
+1
-1
No files found.
mysql-test/r/no-threads.result
View file @
2ed0d9ea
...
...
@@ -4,3 +4,6 @@ select 1+1;
select 1+2;
1+2
3
SHOW GLOBAL VARIABLES LIKE 'thread_handling';
Variable_name Value
thread_handling no-threads
mysql-test/t/no-threads.test
View file @
2ed0d9ea
...
...
@@ -3,3 +3,4 @@
#
select
1
+
1
;
select
1
+
2
;
SHOW
GLOBAL
VARIABLES
LIKE
'thread_handling'
;
sql/mysqld.cc
View file @
2ed0d9ea
...
...
@@ -7745,12 +7745,13 @@ mysqld_get_one_option(int optid,
break
;
}
case
OPT_ONE_THREAD
:
global_system_variables
.
thread_handling
=
2
;
global_system_variables
.
thread_handling
=
SCHEDULER_ONE_THREAD_PER_CONNECTION
;
break
;
case
OPT_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
;
}
case
OPT_FT_BOOLEAN_SYNTAX
:
...
...
sql/scheduler.h
View file @
2ed0d9ea
...
...
@@ -40,7 +40,7 @@ class scheduler_functions
enum
scheduler_types
{
SCHEDULER_ONE_THREAD_PER_CONNECTION
=
1
,
SCHEDULER_ONE_THREAD_PER_CONNECTION
=
0
,
SCHEDULER_NO_THREADS
,
SCHEDULER_POOL_OF_THREADS
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment