1
0
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:
Monty
2018-11-13 01:02:53 +02:00
parent f1867505a6
commit e54643a063
3 changed files with 31 additions and 28 deletions

View File

@ -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/