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

Method reset_globals

sql/sql_class.cc:2477–2486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2475*/
2476
2477void THD::reset_globals()
2478{
2479 mysql_mutex_lock(&LOCK_thd_kill);
2480 mysys_var= 0;
2481 mysql_mutex_unlock(&LOCK_thd_kill);
2482
2483 /* Undocking the thread specific data. */
2484 set_current_thd(0);
2485 net.thd= 0;
2486}
2487
2488/*
2489 Cleanup after query.

Callers 6

init_all_master_infoMethod · 0.45
init_slaveFunction · 0.45
wsrep_reset_threadvarsFunction · 0.45
spider_free_tmp_thdFunction · 0.45
emb_advanced_commandFunction · 0.45
create_embedded_thdFunction · 0.45

Calls 1

set_current_thdFunction · 0.85

Tested by

no test coverage detected