Skip to content

Commit 02d75ae

Browse files
committed
Fixed failures from changing values of thread_stack and thread_cache_size
Added --thread_cache_size=0 to slow_launch_time_func.test as otherwise the new thread would start too fast to be counted as a slow_launch_thread.
1 parent 0a83caf commit 02d75ae

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,12 +4533,12 @@ READ_ONLY NO
45334533
COMMAND_LINE_ARGUMENT REQUIRED
45344534
VARIABLE_NAME THREAD_CACHE_SIZE
45354535
SESSION_VALUE NULL
4536-
GLOBAL_VALUE 0
4537-
GLOBAL_VALUE_ORIGIN COMPILE-TIME
4538-
DEFAULT_VALUE 0
4536+
GLOBAL_VALUE 151
4537+
GLOBAL_VALUE_ORIGIN AUTO
4538+
DEFAULT_VALUE 256
45394539
VARIABLE_SCOPE GLOBAL
45404540
VARIABLE_TYPE BIGINT UNSIGNED
4541-
VARIABLE_COMMENT How many threads we should keep in a cache for reuse
4541+
VARIABLE_COMMENT How many threads we should keep in a cache for reuse. These are freed after 5 minutes of idle time
45424542
NUMERIC_MIN_VALUE 0
45434543
NUMERIC_MAX_VALUE 16384
45444544
NUMERIC_BLOCK_SIZE 1
@@ -4645,9 +4645,9 @@ READ_ONLY NO
46454645
COMMAND_LINE_ARGUMENT REQUIRED
46464646
VARIABLE_NAME THREAD_STACK
46474647
SESSION_VALUE NULL
4648-
GLOBAL_VALUE 295936
4648+
GLOBAL_VALUE 296960
46494649
GLOBAL_VALUE_ORIGIN COMPILE-TIME
4650-
DEFAULT_VALUE 295936
4650+
DEFAULT_VALUE 296960
46514651
VARIABLE_SCOPE GLOBAL
46524652
VARIABLE_TYPE BIGINT UNSIGNED
46534653
VARIABLE_COMMENT The stack size for each thread

mysql-test/suite/sys_vars/r/thread_stack_basic.result

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
select @@global.thread_stack;
22
@@global.thread_stack
3-
295936
3+
296960
44
select @@session.thread_stack;
55
ERROR HY000: Variable 'thread_stack' is a GLOBAL variable
66
show global variables like 'thread_stack';
77
Variable_name Value
8-
thread_stack 295936
8+
thread_stack 296960
99
show session variables like 'thread_stack';
1010
Variable_name Value
11-
thread_stack 295936
11+
thread_stack 296960
1212
select * from information_schema.global_variables where variable_name='thread_stack';
1313
VARIABLE_NAME VARIABLE_VALUE
14-
THREAD_STACK 295936
14+
THREAD_STACK 296960
1515
select * from information_schema.session_variables where variable_name='thread_stack';
1616
VARIABLE_NAME VARIABLE_VALUE
17-
THREAD_STACK 295936
17+
THREAD_STACK 296960
1818
set global thread_stack=1;
1919
ERROR HY000: Variable 'thread_stack' is a read only variable
2020
set session thread_stack=1;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--thread_cache_size=0

0 commit comments

Comments
 (0)