mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@ -4188,8 +4188,7 @@ open_tables_check_upgradable_mdl(THD *thd, TABLE_LIST *tables_start,
|
||||
*/
|
||||
|
||||
bool open_tables(THD *thd, const DDL_options_st &options,
|
||||
TABLE_LIST **start, uint *counter,
|
||||
Sroutine_hash_entry **sroutine_to_open_list, uint flags,
|
||||
TABLE_LIST **start, uint *counter, uint flags,
|
||||
Prelocking_strategy *prelocking_strategy)
|
||||
{
|
||||
/*
|
||||
@ -4228,9 +4227,10 @@ restart:
|
||||
|
||||
has_prelocking_list= thd->lex->requires_prelocking();
|
||||
table_to_open= start;
|
||||
sroutine_to_open= sroutine_to_open_list;
|
||||
sroutine_to_open= &thd->lex->sroutines_list.first;
|
||||
*counter= 0;
|
||||
THD_STAGE_INFO(thd, stage_opening_tables);
|
||||
prelocking_strategy->reset(thd);
|
||||
|
||||
/*
|
||||
If we are executing LOCK TABLES statement or a DDL statement
|
||||
@ -4288,8 +4288,7 @@ restart:
|
||||
elements in prelocking list/set.
|
||||
*/
|
||||
while (*table_to_open ||
|
||||
(thd->locked_tables_mode <= LTM_LOCK_TABLES &&
|
||||
*sroutine_to_open))
|
||||
(thd->locked_tables_mode <= LTM_LOCK_TABLES && *sroutine_to_open))
|
||||
{
|
||||
/*
|
||||
For every table in the list of tables to open, try to find or open
|
||||
@ -4409,6 +4408,8 @@ restart:
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((error= prelocking_strategy->handle_end(thd)))
|
||||
goto error;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user