mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 04:05:32 +02: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:
parent
4cae07968c
commit
550d6871a5
4 changed files with 40 additions and 1 deletions
|
|
@ -573,6 +573,10 @@ static VOID CALLBACK io_completion_callback(PTP_CALLBACK_INSTANCE instance,
|
|||
}
|
||||
|
||||
connection_t *connection = (connection_t*)context;
|
||||
|
||||
if (io_result != ERROR_SUCCESS)
|
||||
goto error;
|
||||
|
||||
THD *thd= connection->thd;
|
||||
ulonglong old_timeout = connection->timeout;
|
||||
connection->timeout = ULONGLONG_MAX;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue