Skip to content

Commit 25c32c8

Browse files
committed
trivial cleanup
1 parent 8eb66bc commit 25c32c8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

sql/sql_show.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4430,15 +4430,13 @@ try_acquire_high_prio_shared_mdl_lock(THD *thd, TABLE_LIST *table,
44304430
open_tables function for this table
44314431
*/
44324432

4433-
static int fill_schema_table_from_frm(THD *thd, TABLE_LIST *tables,
4433+
static int fill_schema_table_from_frm(THD *thd, TABLE *table,
44344434
ST_SCHEMA_TABLE *schema_table,
44354435
LEX_STRING *db_name,
44364436
LEX_STRING *table_name,
4437-
enum enum_schema_tables schema_table_idx,
44384437
Open_tables_backup *open_tables_state_backup,
44394438
bool can_deadlock)
44404439
{
4441-
TABLE *table= tables->table;
44424440
TABLE_SHARE *share;
44434441
TABLE tbl;
44444442
TABLE_LIST table_list;
@@ -4796,9 +4794,8 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
47964794
if (!(table_open_method & ~OPEN_FRM_ONLY) &&
47974795
db_name != &INFORMATION_SCHEMA_NAME)
47984796
{
4799-
if (!fill_schema_table_from_frm(thd, tables, schema_table,
4797+
if (!fill_schema_table_from_frm(thd, table, schema_table,
48004798
db_name, table_name,
4801-
schema_table_idx,
48024799
&open_tables_state_backup,
48034800
can_deadlock))
48044801
continue;

0 commit comments

Comments
 (0)