![]() |
MySQL 9.6.0
Source Code Documentation
|
Loads to the memory cache database object definitions from dictionary tables. More...
#include "current_thd.h"#include "ha_prototypes.h"#include <set>#include <stack>#include "dict0load.h"#include "btr0btr.h"#include "btr0pcur.h"#include "dict0boot.h"#include "dict0crea.h"#include "dict0dd.h"#include "dict0dict.h"#include "dict0mem.h"#include "dict0priv.h"#include "dict0stats.h"#include "fsp0file.h"#include "fsp0sysspace.h"#include "fts0priv.h"#include "mach0data.h"#include "my_dbug.h"#include "fil0fil.h"#include "fts0fts.h"#include "mysql_version.h"#include "page0page.h"#include "rem0cmp.h"#include "srv0srv.h"#include "srv0start.h"#include "ut0math.h"Functions | |
| 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... | |
| 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... | |
Variables | |
| bool | srv_load_corrupted = false |
Loads to the memory cache database object definitions from dictionary tables.
Created 4/24/1996 Heikki Tuuri
| 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 |
| bool srv_load_corrupted = false |