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

Function close_thread_tables_for_query

sql/sql_base.cc:812–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810
811
812int close_thread_tables_for_query(THD *thd)
813{
814 if (thd->lex && thd->lex->explain)
815 thd->lex->explain->notify_tables_are_closed();
816
817 DBUG_EXECUTE_IF("explain_notify_tables_are_closed",
818 if (dbug_user_var_equals_str(thd, "show_explain_probe_query",
819 thd->query()))
820 dbug_serve_apcs(thd, 1);
821 );
822 return close_thread_tables(thd);
823}
824/*
825 Close all tables used by the current substatement, or all tables
826 used by this thread if we are on the upper level.

Callers 2

sql_parse.ccFile · 0.85
prepareMethod · 0.85

Calls 6

dbug_user_var_equals_strFunction · 0.85
dbug_serve_apcsFunction · 0.85
close_thread_tablesFunction · 0.85
ifFunction · 0.70
queryMethod · 0.45

Tested by

no test coverage detected