mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge branch '10.2' into 10.3
This commit is contained in:
@ -417,8 +417,6 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, SQL_HANDLER *reopen)
|
||||
sql_handler->reset();
|
||||
}
|
||||
sql_handler->table= table;
|
||||
memcpy(&sql_handler->mdl_request, &tables->mdl_request,
|
||||
sizeof(tables->mdl_request));
|
||||
|
||||
if (!(sql_handler->lock= get_lock_data(thd, &sql_handler->table, 1,
|
||||
GET_LOCK_STORE_LOCKS)))
|
||||
@ -431,6 +429,8 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, SQL_HANDLER *reopen)
|
||||
if (unlikely(error))
|
||||
goto err;
|
||||
|
||||
sql_handler->mdl_request.move_from(tables->mdl_request);
|
||||
|
||||
/* Always read all columns */
|
||||
table->read_set= &table->s->all_set;
|
||||
if (table->vcol_set)
|
||||
@ -470,9 +470,6 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, SQL_HANDLER *reopen)
|
||||
table_list->table->open_by_handler= 1;
|
||||
}
|
||||
|
||||
/* Safety, cleanup the pointer to satisfy MDL assertions. */
|
||||
tables->mdl_request.ticket= NULL;
|
||||
|
||||
if (! reopen)
|
||||
my_ok(thd);
|
||||
DBUG_PRINT("exit",("OK"));
|
||||
|
Reference in New Issue
Block a user