mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-246 - Aborted_clients incremented during ordinary connection close
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.
This commit is contained in:
@ -167,7 +167,6 @@ void threadpool_remove_connection(THD *thd)
|
||||
worker_context.save();
|
||||
|
||||
thread_attach(thd);
|
||||
thd->killed= KILL_CONNECTION;
|
||||
thd->net.reading_or_writing= 0;
|
||||
|
||||
end_connection(thd);
|
||||
|
Reference in New Issue
Block a user