mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fixed bug in lock tables introduced by shared locks.
New lock test
This commit is contained in:
@@ -1362,7 +1362,7 @@ int open_tables(THD *thd,TABLE_LIST *start)
|
||||
result= -1; // Fatal error
|
||||
break;
|
||||
}
|
||||
if (tables->lock_type != TL_UNLOCK)
|
||||
if (tables->lock_type != TL_UNLOCK && ! thd->locked_tables)
|
||||
tables->table->reginfo.lock_type=tables->lock_type;
|
||||
tables->table->grant= tables->grant;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user