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

Function reset_thd

sql/sql_class.cc:5585–5594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5583
5584
5585void reset_thd(MYSQL_THD thd)
5586{
5587 const char *proc_info= thd->proc_info;
5588 thd->proc_info="reset";
5589 close_thread_tables(thd);
5590 thd->release_transactional_locks();
5591 thd->free_items();
5592 free_root(thd->mem_root, MYF(MY_KEEP_PREALLOC));
5593 thd->proc_info= proc_info;
5594}
5595
5596/**
5597 This function can be used by storage engine

Callers 2

reset_worker_thdMethod · 0.85
dict_stats_funcFunction · 0.85

Calls 4

close_thread_tablesFunction · 0.85
free_rootFunction · 0.85
free_itemsMethod · 0.80

Tested by

no test coverage detected