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

Function create_thd

sql/sql_class.cc:5451–5460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5449/* the following three functions are used in background purge threads */
5450
5451MYSQL_THD create_thd()
5452{
5453 THD *thd= new THD(next_thread_id());
5454 thd->store_globals();
5455 thd->set_command(COM_DAEMON);
5456 thd->system_thread= SYSTEM_THREAD_GENERIC;
5457 thd->security_ctx->host_or_ip="";
5458 server_threads.insert(thd);
5459 return thd;
5460}
5461
5462void destroy_thd(MYSQL_THD thd)
5463{

Callers 1

close_with_errorMethod · 0.70

Calls 4

next_thread_idFunction · 0.85
store_globalsMethod · 0.45
set_commandMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected