mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fixed issue with LOCK TABLE + ALTER TABLE ENABLE KEYS + SHOW commands.
sql/sql_table.cc: Remove version protection from share when repair has been done. Without this one can't run SHOW commands on the table if it was locked until it's unlocked. sql/table.h: Allow one to remove version protection with allow_access_to_protected_table()
This commit is contained in:
@ -806,6 +806,15 @@ struct TABLE_SHARE
|
||||
{
|
||||
version= 0;
|
||||
}
|
||||
/*
|
||||
This is used only for the case of locked tables, as we want to
|
||||
allow one to do SHOW commands on them even after ALTER or REPAIR
|
||||
*/
|
||||
inline void allow_access_to_protected_table()
|
||||
{
|
||||
DBUG_ASSERT(version == 0);
|
||||
version= 1;
|
||||
}
|
||||
/*
|
||||
Remove from table definition cache at close.
|
||||
Table can still be opened by SHOW
|
||||
|
Reference in New Issue
Block a user