MySQL 9.1.0
Source Code Documentation
dict0boot.cc File Reference

Data dictionary creation and booting. More...

#include "dict0boot.h"
#include "btr0btr.h"
#include "buf0flu.h"
#include "dict0crea.h"
#include "dict0load.h"
#include "ha_prototypes.h"
#include "ibuf0ibuf.h"
#include "log0recv.h"
#include "dict0dd.h"
#include "os0file.h"
#include "srv0srv.h"
#include "trx0trx.h"

Functions

dict_hdr_tdict_hdr_get (mtr_t *mtr)
 Gets a pointer to the dictionary header and x-latches its page. More...
 
void dict_hdr_get_new_id (table_id_t *table_id, space_index_t *index_id, space_id_t *space_id, const dict_table_t *table, bool disable_redo)
 Returns a new table, index, or space id. More...
 
void dict_hdr_flush_row_id (void)
 Writes the current value of the row id counter to the dictionary header file page. More...
 
static bool dict_hdr_create (mtr_t *mtr)
 Creates the file page for the dictionary header. More...
 
dberr_t dict_boot (void)
 Initializes the data dictionary memory structures when the database is started. More...
 
dberr_t dict_create (void)
 Creates and initializes the data dictionary at the server bootstrap. More...
 

Detailed Description

Data dictionary creation and booting.

Created 4/18/1996 Heikki Tuuri

Function Documentation

◆ dict_boot()

dberr_t dict_boot ( void  )

Initializes the data dictionary memory structures when the database is started.

This function is also called when the data dictionary is created.

Returns
DB_SUCCESS or error code.

◆ dict_create()

dberr_t dict_create ( void  )

Creates and initializes the data dictionary at the server bootstrap.

Returns
DB_SUCCESS or error code.

◆ dict_hdr_create()

static bool dict_hdr_create ( mtr_t mtr)
static

Creates the file page for the dictionary header.

This function is called only at the database creation.

Returns
true if succeed
Parameters
mtrin: mtr

◆ dict_hdr_flush_row_id()

void dict_hdr_flush_row_id ( void  )

Writes the current value of the row id counter to the dictionary header file page.

◆ dict_hdr_get()

dict_hdr_t * dict_hdr_get ( mtr_t mtr)

Gets a pointer to the dictionary header and x-latches its page.

Returns
pointer to the dictionary header, page x-latched
Parameters
mtrin: mtr

◆ dict_hdr_get_new_id()

void dict_hdr_get_new_id ( table_id_t table_id,
space_index_t index_id,
space_id_t space_id,
const dict_table_t table,
bool  disable_redo 
)

Returns a new table, index, or space id.

Parameters
[out]table_idTable id (not assigned if null)
[out]index_idIndex id (not assigned if null)
[out]space_idSpace id (not assigned if null)
[in]tableTable
[in]disable_redoIf true and table object is null then disable-redo