mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
Made main.flush more resilient for parallel threads
This commit is contained in:
parent
af33202af7
commit
c2c10094a8
2 changed files with 6 additions and 0 deletions
|
@ -608,7 +608,10 @@ disconnect con1;
|
||||||
#
|
#
|
||||||
# Test FLUSH THREADS
|
# Test FLUSH THREADS
|
||||||
#
|
#
|
||||||
|
set @save_thread_cache_size=@@global.thread_cache_size;
|
||||||
|
set @@global.thread_cache_size=0;
|
||||||
flush threads;
|
flush threads;
|
||||||
show status like "Threads_cached";
|
show status like "Threads_cached";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Threads_cached 0
|
Threads_cached 0
|
||||||
|
set @@global.thread_cache_size=@save_thread_cache_size;
|
||||||
|
|
|
@ -727,5 +727,8 @@ disconnect con1;
|
||||||
--echo # Test FLUSH THREADS
|
--echo # Test FLUSH THREADS
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
|
set @save_thread_cache_size=@@global.thread_cache_size;
|
||||||
|
set @@global.thread_cache_size=0;
|
||||||
flush threads;
|
flush threads;
|
||||||
show status like "Threads_cached";
|
show status like "Threads_cached";
|
||||||
|
set @@global.thread_cache_size=@save_thread_cache_size;
|
||||||
|
|
Loading…
Add table
Reference in a new issue