MySQL 9.6.0
Source Code Documentation
dict0load.h File Reference

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...
 

Detailed Description

Loads to the memory cache database object definitions from dictionary tables.

Created 4/24/1996 Heikki Tuuri

Typedef Documentation

◆ dict_names_t

typedef std::deque<const char *, ut::allocator<const char *> > dict_names_t

A stack of table names related through foreign key constraints.

Function Documentation

◆ dict_get_and_save_space_name()

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.

Parameters
[in]tableTable object

◆ dict_save_data_dir_path()

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.

Parameters
[in,out]tabletable instance
[in]filepathfilepath of tablespace