List_open_tables ( THD *thd, const char *db, const char *wild)Ĭlose_cached_tables ( THD *thd, TABLE_LIST *tables, bool wait_for_refresh, ulong timeout) Get an existing table definition from the table definition cache. Get_cached_table_share (const char *db, const char *table_name) Mark that we are not using table share anymore. Release_table_share ( TABLE_SHARE *share) Get_table_share_with_discover ( THD *thd, TABLE_LIST *table_list, const char * key, size_t key_length, bool open_secondary, int *error) Get_table_share ( THD *thd, const char *db, const char *table_name, const char * key, size_t key_length, bool open_view, bool open_secondary)
Update TABLE_SHARE with options from dd::Schema object. Update_schema_options (const dd::Schema *sch_obj, TABLE_SHARE *share) Read any existing histogram statistics from the data dictionary and store a copy of them in the TABLE_SHARE.
Read_histograms ( THD *thd, TABLE_SHARE *share, const dd::Schema *schema, const dd::Abstract_table * table_def) Process_found_table_share ( THD *thd, TABLE_SHARE *share, bool open_view) Notify table definition cache that process of shutting down server has started so it has to keep number of TABLE and TABLE_SHARE objects minimal in order to reduce number of references to pluggable engines. Get table cache key for a table list element. Get_table_def_key (const TABLE_LIST *table_list, const char ** key) More.Ĭreate_table_def_key_secondary (const char *db_name, const char *table_name)Ĭreate a table cache/table definition cache key for a table in a secondary storage engine. More.Ĭreate_table_def_key_tmp (const THD *thd, const char *db_name, const char *table_name, char * key)Ĭreate a table cache/table definition cache key for a temporary table. More.Ĭreate_table_def_key (const char *db_name, const char *table_name, char * key)Ĭreate a table cache/table definition cache key for a table. More.Īdd_view_place_holder ( THD *thd, TABLE_LIST *table_list)Īdd a dummy LEX object for a view.
Open view by getting its definition from disk (and table cache in future). Tdc_open_view ( THD *thd, TABLE_LIST *table_list, const char *cache_key, size_t cache_key_length) More.įind_temporary_table ( THD *thd, const char *table_key, size_t table_key_length)įind a temporary table specified by a key in the THD::temporary_tables list. More.Īuto_repair_table ( THD *thd, TABLE_LIST *table_list)Īuxiliary routine which is used for performing automatical table repair. Open_table_entry_fini ( THD *thd, TABLE_SHARE *share, const dd::Table *table, TABLE * entry)įinalize the process of TABLE creation by loading table triggers and taking action if a HEAP table content was emptied implicitly. More.Ĭheck_and_update_table_version ( THD *thd, TABLE_LIST *tables, TABLE_SHARE *table_share)Ĭompare metadata versions of an element obtained from the table definition cache and its corresponding node in the parse tree. Initialize performance schema instrumentation points used by the table cache. Table_definition_cache = malloc_unordered_map > This is an iterator which emits leaf TABLE_LIST nodes in an order suitable for expansion of 'table_name.
More.Īn error handler to mark transaction to rollback on DEADLOCK error during DISCOVER / REPAIR. More.Įrror handler class for supressing HA_ERR_ROW_FORMAT_CHANGED errors from SE. An error handler which converts, if possible, ER_LOCK_DEADLOCK error that can occur when we are trying to acquire a metadata lock to a request for back-off and re-start of open_tables() process.