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

Function threadpool_remove_connection

sql/threadpool_common.cc:354–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352
353
354static void threadpool_remove_connection(THD *thd)
355{
356 thread_attach(thd);
357 thd->net.reading_or_writing = 0;
358 end_connection(thd);
359 close_connection(thd, 0);
360 unlink_thd(thd);
361 PSI_CALL_delete_current_thread(); // before THD is destroyed
362 delete thd;
363
364 /*
365 Free resources associated with this connection:
366 mysys thread_var and PSI thread.
367 */
368 my_thread_end();
369}
370
371
372/*

Callers 2

tp_callbackFunction · 0.85

Calls 5

thread_attachFunction · 0.85
end_connectionFunction · 0.85
close_connectionFunction · 0.85
unlink_thdFunction · 0.85
my_thread_endFunction · 0.85

Tested by

no test coverage detected