![]() |
MySQL 9.2.0
Source Code Documentation
|
Helper class providing overloaded functions asserting that we have proper MDL locks in place. More...
Static Public Member Functions | |
static bool | is_release_locked (THD *, const dd::Entity_object *) |
static bool | is_read_locked (THD *thd, const dd::Abstract_table *table) |
static bool | is_write_locked (THD *thd, const dd::Abstract_table *table) |
static bool | is_read_locked (THD *thd, const dd::Spatial_reference_system *srs) |
static bool | is_write_locked (THD *thd, const dd::Spatial_reference_system *srs) |
static bool | is_release_locked (THD *thd, const dd::Spatial_reference_system *srs) |
static bool | is_read_locked (THD *thd, const dd::Column_statistics *column_statistics) |
static bool | is_write_locked (THD *thd, const dd::Column_statistics *column_statistics) |
static bool | is_release_locked (THD *thd, const dd::Column_statistics *column_statistics) |
static bool | is_read_locked (THD *, const dd::Charset *) |
static bool | is_write_locked (THD *, const dd::Charset *) |
static bool | is_read_locked (THD *, const dd::Collation *) |
static bool | is_write_locked (THD *, const dd::Collation *) |
static bool | is_read_locked (THD *thd, const dd::Schema *schema) |
static bool | is_write_locked (THD *thd, const dd::Schema *schema) |
static bool | is_release_locked (THD *thd, const dd::Schema *schema) |
static bool | is_read_locked (THD *thd, const dd::Tablespace *tablespace) |
static bool | is_write_locked (THD *thd, const dd::Tablespace *tablespace) |
static bool | is_release_locked (THD *thd, const dd::Tablespace *tablespace) |
static bool | is_read_locked (THD *thd, const dd::Event *event) |
static bool | is_write_locked (THD *thd, const dd::Event *event) |
static bool | is_read_locked (THD *thd, const dd::Routine *routine) |
static bool | is_write_locked (THD *thd, const dd::Routine *routine) |
static bool | is_locked (THD *thd, const dd::Resource_group *resource_group, enum_mdl_type lock_type) |
Private helper function for asserting MDL for resource groups. More... | |
static bool | is_read_locked (THD *thd, const dd::Resource_group *resource_group) |
Check whether a resource group object holds at least MDL_INTENTION_EXCLUSIVE. More... | |
static bool | is_write_locked (THD *thd, const dd::Resource_group *resource_group) |
Check if MDL_EXCLUSIVE lock is held by DD Resource group object. More... | |
Static Private Member Functions | |
static bool | is_locked (THD *thd, const dd::Abstract_table *table, enum_mdl_type lock_type) |
Private helper function for asserting MDL for tables. More... | |
static bool | is_locked (THD *thd, const dd::Event *event, enum_mdl_type lock_type) |
Private helper function for asserting MDL for events. More... | |
static bool | is_locked (THD *thd, const dd::Routine *routine, enum_mdl_type lock_type) |
Private helper function for asserting MDL for routines. More... | |
static bool | is_locked (THD *thd, const dd::Schema *schema, enum_mdl_type lock_type) |
Private helper function for asserting MDL for schemata. More... | |
static bool | is_locked (THD *thd, const dd::Spatial_reference_system *srs, enum_mdl_type lock_type) |
Private helper function for asserting MDL for spatial reference systems. More... | |
static bool | is_locked (THD *thd, const dd::Column_statistics *column_statistics, enum_mdl_type lock_type) |
Private helper function for asserting MDL for column statistics. More... | |
static bool | is_locked (THD *thd, const dd::Tablespace *tablespace, enum_mdl_type lock_type) |
Private helper function for asserting MDL for tablespaces. More... | |
Helper class providing overloaded functions asserting that we have proper MDL locks in place.
Please note that the functions cannot be called until after we have the name of the object, so if we acquire an object by id, the asserts must be delayed until the object is retrieved.
|
inlinestaticprivate |
Private helper function for asserting MDL for tables.
thd | Thread context. |
table | Table object. |
lock_type | Weakest lock type accepted. |
|
inlinestaticprivate |
Private helper function for asserting MDL for column statistics.
thd | Thread context. |
column_statistics | Column statistic object. |
lock_type | Weakest lock type accepted. |
|
inlinestaticprivate |
Private helper function for asserting MDL for events.
thd | Thread context. |
event | Event object. |
lock_type | Weakest lock type accepted. |
|
inlinestatic |
Private helper function for asserting MDL for resource groups.
thd | THD context. |
resource_group | DD Resource group object. |
lock_type | Weakest lock type accepted. |
|
inlinestaticprivate |
Private helper function for asserting MDL for routines.
thd | Thread context. |
routine | Routine object. |
lock_type | Weakest lock type accepted. |
|
inlinestaticprivate |
Private helper function for asserting MDL for schemata.
thd | Thread context. |
schema | Schema object. |
lock_type | Weakest lock type accepted. |
|
inlinestaticprivate |
Private helper function for asserting MDL for spatial reference systems.
thd | Thread context. |
srs | Spatial reference system object. |
lock_type | Weakest lock type accepted. |
|
inlinestaticprivate |
Private helper function for asserting MDL for tablespaces.
thd | Thread context. |
tablespace | Tablespace object. |
lock_type | Weakest lock type accepted. |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Check whether a resource group object holds at least MDL_INTENTION_EXCLUSIVE.
IX is acquired when a resource group is being accessed when creating/altering a resource group.
thd | THD context. |
resource_group | Pointer to DD resource group object. |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Check if MDL_EXCLUSIVE lock is held by DD Resource group object.
Writing a resource group object should be governed by MDL_EXCLUSIVE.
thd | THD context |
resource_group | Pointer to DD resource group object. |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |