Skip to content

Commit 49f351f

Browse files
committed
MDEV-36835 - main.aborted_clients fails after various tests
Some tests like main.ssl_timeout and main.wait_timeout may abort connections. If main.aborted_clients follows such tests it may observe unstable value of aborted_clients status variable. FLUSH STATUS was issued to make aborted_clients value reproducible. However after 775cba4 FLUSH STATUS doesn't reset global status. Fixed by using FLUSH GLOBAL STATUS. Regression after "MDEV-33145 - Add FLUSH GLOBAL STATUS".
1 parent 8868737 commit 49f351f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mysql-test/main/aborted_clients.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FLUSH STATUS;
1+
FLUSH GLOBAL STATUS;
22
connect con1,localhost,root,,;
33
disconnect con1;
44
connection default;

mysql-test/main/aborted_clients.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-- source include/not_embedded.inc
66
-- source include/count_sessions.inc
77

8-
FLUSH STATUS;
8+
FLUSH GLOBAL STATUS;
99
# Connect/Disconnect look that aborted_clients stays 0
1010
connect (con1,localhost,root,,);
1111
disconnect con1;

0 commit comments

Comments
 (0)