Helper class providing overloaded functions asserting that we have proper MDL locks in place.
More...
|
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 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.
- Note
- Checking for MDL locks is disabled for the DD initialization thread because the server is not multi threaded at this stage.