mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Return to original stage after mysql_lock_tables
Stage "Filling schema table" is now properly shown in 'show processlist' mysys/mf_keycache.c: Simple cleanup with more comments sql/lock.cc: Return to original stage after mysql_lock_tables Made 'Table lock' as a true stage sql/sql_show.cc: Restore original stage after get_schema_tables_result
This commit is contained in:
@ -8081,12 +8081,13 @@ bool get_schema_tables_result(JOIN *join,
|
||||
THD *thd= join->thd;
|
||||
LEX *lex= thd->lex;
|
||||
bool result= 0;
|
||||
const char *old_proc_info;
|
||||
PSI_stage_info org_stage;
|
||||
DBUG_ENTER("get_schema_tables_result");
|
||||
|
||||
Warnings_only_error_handler err_handler;
|
||||
thd->push_internal_handler(&err_handler);
|
||||
old_proc_info= thd_proc_info(thd, "Filling schema table");
|
||||
thd->enter_stage(&stage_filling_schema_table, &org_stage, __func__, __FILE__,
|
||||
__LINE__);
|
||||
|
||||
JOIN_TAB *tab;
|
||||
for (tab= first_linear_tab(join, WITHOUT_BUSH_ROOTS, WITH_CONST_TABLES);
|
||||
@ -8190,7 +8191,7 @@ bool get_schema_tables_result(JOIN *join,
|
||||
}
|
||||
else if (result)
|
||||
my_error(ER_UNKNOWN_ERROR, MYF(0));
|
||||
thd_proc_info(thd, old_proc_info);
|
||||
THD_STAGE_INFO(thd, org_stage);
|
||||
DBUG_RETURN(result);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user