mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-4786 merge 10.0-monty -> 10.0
remove TDC_RT_REMOVE_NOT_OWN_AND_MARK_NOT_USABLE
This commit is contained in:
30
sql/table.h
30
sql/table.h
@ -837,36 +837,6 @@ struct TABLE_SHARE
|
||||
{
|
||||
return version != refresh_version;
|
||||
}
|
||||
inline bool protected_against_usage() const
|
||||
{
|
||||
return version == 0;
|
||||
}
|
||||
inline void protect_against_usage()
|
||||
{
|
||||
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
|
||||
*/
|
||||
inline void remove_from_cache_at_close()
|
||||
{
|
||||
if (version != 0) /* Don't remove protection */
|
||||
version= 1;
|
||||
}
|
||||
inline void set_refresh_version()
|
||||
{
|
||||
version= refresh_version;
|
||||
}
|
||||
|
||||
/**
|
||||
Convert unrelated members of TABLE_SHARE to one enum
|
||||
|
Reference in New Issue
Block a user