1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fix threadpool to report connections aborted due to wait timeout.

Update wait_timeout.test to add test case for this.
This commit is contained in:
Vladislav Vaintroub
2017-08-30 14:37:16 +00:00
parent d20fa48599
commit 91826970c5
8 changed files with 53 additions and 24 deletions

View File

@@ -2008,6 +2008,9 @@ int THD::killed_errno()
DBUG_RETURN(ER_SERVER_SHUTDOWN);
case KILL_SLAVE_SAME_ID:
DBUG_RETURN(ER_SLAVE_SAME_ID);
case KILL_WAIT_TIMEOUT:
case KILL_WAIT_TIMEOUT_HARD:
DBUG_RETURN(ER_NET_READ_INTERRUPTED);
}
DBUG_RETURN(0); // Keep compiler happy
}