MCPcopy Create free account
hub / github.com/MariaDB/server / handle_wait_timeout

Function handle_wait_timeout

sql/threadpool_common.cc:379–386  ·  view source on GitHub ↗

Ensure that proper error message is sent to client, and "aborted" message appears in the log in case of wait timeout. See also timeout handling in net_serv.cc */

Source from the content-addressed store, hash-verified

377 See also timeout handling in net_serv.cc
378*/
379static void handle_wait_timeout(THD *thd)
380{
381 thd->get_stmt_da()->reset_diagnostics_area();
382 thd->reset_killed();
383 my_error(ER_NET_READ_INTERRUPTED, MYF(0));
384 thd->net.last_errno= ER_NET_READ_INTERRUPTED;
385 thd->net.error= 2;
386}
387
388/** Check if some client data is cached in thd->net or thd->net.vio */
389static bool has_unread_data(THD* thd)

Callers 1

Calls 4

my_errorFunction · 0.85
get_stmt_daMethod · 0.80
reset_killedMethod · 0.80

Tested by

no test coverage detected