mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +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
|
||||
#
|
||||
set @save_thread_cache_size=@@global.thread_cache_size;
|
||||
set @@global.thread_cache_size=0;
|
||||
flush threads;
|
||||
show status like "Threads_cached";
|
||||
Variable_name Value
|
||||
Threads_cached 0
|
||||
set @@global.thread_cache_size=@save_thread_cache_size;
|
||||
|
|
|
@ -727,5 +727,8 @@ disconnect con1;
|
|||
--echo # Test FLUSH THREADS
|
||||
--echo #
|
||||
|
||||
set @save_thread_cache_size=@@global.thread_cache_size;
|
||||
set @@global.thread_cache_size=0;
|
||||
flush threads;
|
||||
show status like "Threads_cached";
|
||||
set @@global.thread_cache_size=@save_thread_cache_size;
|
||||
|
|
Loading…
Reference in a new issue