Made main.flush more resilient for parallel threads

This commit is contained in:
Monty 2021-06-13 19:38:16 +03:00
parent af33202af7
commit c2c10094a8
2 changed files with 6 additions and 0 deletions

View file

@ -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;

View file

@ -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;