mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
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.
11 lines
317 B
Plaintext
11 lines
317 B
Plaintext
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;
|