mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.0.14 into 10.1
This commit is contained in:
@ -1446,11 +1446,15 @@ int mysql_multi_update_prepare(THD *thd)
|
||||
another table instance used by this statement which is going to
|
||||
be write-locked (for example, trigger to be invoked might try
|
||||
to update this table).
|
||||
Last argument routine_modifies_data for read_lock_type_for_table()
|
||||
is ignored, as prelocking placeholder will never be set here.
|
||||
*/
|
||||
DBUG_ASSERT(tl->prelocking_placeholder == false);
|
||||
thr_lock_type lock_type= read_lock_type_for_table(thd, lex, tl, true);
|
||||
if (using_lock_tables)
|
||||
tl->lock_type= read_lock_type_for_table(thd, lex, tl);
|
||||
tl->lock_type= lock_type;
|
||||
else
|
||||
tl->set_lock_type(thd, read_lock_type_for_table(thd, lex, tl));
|
||||
tl->set_lock_type(thd, lock_type);
|
||||
tl->updating= 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user