mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
trivial cleanup
This commit is contained in:
@ -4430,15 +4430,13 @@ try_acquire_high_prio_shared_mdl_lock(THD *thd, TABLE_LIST *table,
|
||||
open_tables function for this table
|
||||
*/
|
||||
|
||||
static int fill_schema_table_from_frm(THD *thd, TABLE_LIST *tables,
|
||||
static int fill_schema_table_from_frm(THD *thd, TABLE *table,
|
||||
ST_SCHEMA_TABLE *schema_table,
|
||||
LEX_STRING *db_name,
|
||||
LEX_STRING *table_name,
|
||||
enum enum_schema_tables schema_table_idx,
|
||||
Open_tables_backup *open_tables_state_backup,
|
||||
bool can_deadlock)
|
||||
{
|
||||
TABLE *table= tables->table;
|
||||
TABLE_SHARE *share;
|
||||
TABLE tbl;
|
||||
TABLE_LIST table_list;
|
||||
@ -4796,9 +4794,8 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
|
||||
if (!(table_open_method & ~OPEN_FRM_ONLY) &&
|
||||
db_name != &INFORMATION_SCHEMA_NAME)
|
||||
{
|
||||
if (!fill_schema_table_from_frm(thd, tables, schema_table,
|
||||
if (!fill_schema_table_from_frm(thd, table, schema_table,
|
||||
db_name, table_name,
|
||||
schema_table_idx,
|
||||
&open_tables_state_backup,
|
||||
can_deadlock))
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user