Skip to content

Commit

Permalink
MDEV-21857 - Fix sporadic failure of mdev375
Browse files Browse the repository at this point in the history
status threads_connected can temporarily be bigger than max_connections+1

If SHOW STATUS LIKE "Threads_connected" comes after
ER_CON_COUNT_ERROR is sent to the client, but before the counter is
decremented, Threads_connected can differ from the expected value.
  • Loading branch information
vaintroub committed Mar 2, 2020
1 parent 8382f10 commit f0d2542
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mysql-test/t/mdev375.test
Expand Up @@ -27,6 +27,8 @@ SELECT 2;

--connection default
SELECT 0;
let $count_sessions=11;
--source include/wait_until_count_sessions.inc
show status like "Threads_connected";

SET GLOBAL log_warnings=@save_log_warnings;
Expand Down

0 comments on commit f0d2542

Please sign in to comment.