![]() |
MySQL 9.6.0
Source Code Documentation
|
Loads to the memory cache database object definitions from dictionary tables. More...
#include "btr0types.h"#include "dict0types.h"#include "fil0fil.h"#include "mem0mem.h"#include "trx0types.h"#include "univ.i"#include "ut0byte.h"#include "ut0new.h"#include <deque>Go to the source code of this file.
Typedefs | |
| typedef std::deque< const char *, ut::allocator< const char * > > | dict_names_t |
| A stack of table names related through foreign key constraints. More... | |
Functions | |
| void | dict_get_and_save_space_name (dict_table_t *table) |
| Make sure the tablespace name is saved in dict_table_t if the table uses a general tablespace. More... | |
| void | dict_save_data_dir_path (dict_table_t *table, char *filepath) |
| Using the table->heap, copy the null-terminated filepath into table->data_dir_path. More... | |
Loads to the memory cache database object definitions from dictionary tables.
Created 4/24/1996 Heikki Tuuri
| typedef std::deque<const char *, ut::allocator<const char *> > dict_names_t |
A stack of table names related through foreign key constraints.
| void dict_get_and_save_space_name | ( | dict_table_t * | table | ) |
Make sure the tablespace name is saved in dict_table_t if the table uses a general tablespace.
Try to read it from the fil_system_t first, then from SYS_TABLESPACES.
| [in] | table | Table object |
| void dict_save_data_dir_path | ( | dict_table_t * | table, |
| char * | filepath | ||
| ) |
Using the table->heap, copy the null-terminated filepath into table->data_dir_path.
The data directory path is derived from the filepath by stripping the the table->name.m_name component suffix. If the filepath is not of the correct form (".../db/table.ibd"), then table->data_dir_path will remain nullptr.
| [in,out] | table | table instance |
| [in] | filepath | filepath of tablespace |