mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
550d6871a5
The problem was increment of aborted_threads variable due to thd->killed which was set when threadpool connection was terminated . The fix is not to set thd->killed anymore, there is no real reason for doing it.. Added a test that checks that status variable aborted_clients does not grow for ordinary disconnects, and that successful KILL increments this variable.
10 lines
317 B
Text
10 lines
317 B
Text
FLUSH STATUS;
|
|
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='aborted_clients';
|
|
VARIABLE_VALUE
|
|
0
|
|
KILL CONNECTION_ID();
|
|
ERROR 70100: Connection was killed
|
|
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='aborted_clients';
|
|
VARIABLE_VALUE
|
|
1
|
|
FLUSH STATUS;
|