Skip to content

Commit

Permalink
Made main.flush more resilient for parallel threads
Browse files Browse the repository at this point in the history
  • Loading branch information
montywi committed Jun 14, 2021
1 parent af33202 commit c2c1009
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mysql-test/main/flush.result
Original file line number Diff line number Diff line change
Expand Up @@ -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;
3 changes: 3 additions & 0 deletions mysql-test/main/flush.test
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit c2c1009

Please sign in to comment.