mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Simplify test for updateable TABLE_CATEGORY's
- Re-numbered enum_table_category to make some tests easier - Moved TABLE_CATEGORY_INFORMATION to be first CATEGORY of virtual tables - Don't take MDL locks for not updateable table category's
This commit is contained in:
@ -2038,8 +2038,8 @@ retry_share:
|
||||
tc_add_table(thd, table);
|
||||
}
|
||||
|
||||
|
||||
if (!(flags & MYSQL_OPEN_HAS_MDL_LOCK))
|
||||
if (!(flags & MYSQL_OPEN_HAS_MDL_LOCK) &&
|
||||
table->s->table_category < TABLE_CATEGORY_INFORMATION)
|
||||
{
|
||||
/*
|
||||
We are not under LOCK TABLES and going to acquire write-lock/
|
||||
|
Reference in New Issue
Block a user