mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
Merge xiphis.org:/home/antony/work2/mysql-4.1-engines
into xiphis.org:/home/antony/work2/mysql-4.1-engines.merge
This commit is contained in:
commit
e112a475bd
1 changed files with 7 additions and 0 deletions
|
@ -155,6 +155,13 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd, TABLE **tables, uint count, uint flags)
|
|||
if (thr_multi_lock(sql_lock->locks + sql_lock->lock_count,
|
||||
sql_lock->lock_count))
|
||||
{
|
||||
/*
|
||||
reset_lock_data is required here. If thr_multi_lock fails it
|
||||
resets lock type for tables, which were locked before (and
|
||||
including) one that caused error. Lock type for other tables
|
||||
preserved.
|
||||
*/
|
||||
reset_lock_data(sql_lock);
|
||||
thd->some_tables_deleted=1; // Try again
|
||||
sql_lock->lock_count=0; // Locks are alread freed
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue