1
/*****************************************************************************
3
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
5
This program is free software; you can redistribute it and/or modify it under
6
the terms of the GNU General Public License as published by the Free Software
7
Foundation; version 2 of the License.
9
This program is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
You should have received a copy of the GNU General Public License along with
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15
Place, Suite 330, Boston, MA 02111-1307 USA
17
*****************************************************************************/
19
/**************************************************//**
20
@file include/dict0boot.h
1
/******************************************************
21
2
Data dictionary creation and booting
23
6
Created 4/18/1996 Heikki Tuuri
24
7
*******************************************************/
38
21
typedef byte dict_hdr_t;
40
/**********************************************************************//**
41
Gets a pointer to the dictionary header and x-latches its page.
42
@return pointer to the dictionary header, page x-latched */
23
/**************************************************************************
24
Gets a pointer to the dictionary header and x-latches its page. */
47
mtr_t* mtr); /*!< in: mtr */
48
/**********************************************************************//**
49
Returns a new row, table, index, or tree id.
29
/* out: pointer to the dictionary header,
31
mtr_t* mtr); /* in: mtr */
32
/**************************************************************************
33
Returns a new row, table, index, or tree id. */
53
36
dict_hdr_get_new_id(
54
37
/*================*/
55
ulint type); /*!< in: DICT_HDR_ROW_ID, ... */
56
/**********************************************************************//**
39
ulint type); /* in: DICT_HDR_ROW_ID, ... */
40
/**************************************************************************
41
Returns a new row id. */
61
44
dict_sys_get_new_row_id(void);
62
45
/*=========================*/
63
/**********************************************************************//**
64
Reads a row id from a record or other 6-byte stored form.
47
/**************************************************************************
48
Reads a row id from a record or other 6-byte stored form. */
68
51
dict_sys_read_row_id(
69
52
/*=================*/
70
byte* field); /*!< in: record field */
71
/**********************************************************************//**
54
byte* field); /* in: record field */
55
/**************************************************************************
72
56
Writes a row id to a record or other 6-byte stored form. */
75
59
dict_sys_write_row_id(
76
60
/*==================*/
77
byte* field, /*!< in: record field */
78
dulint row_id);/*!< in: row id */
79
/*****************************************************************//**
61
byte* field, /* in: record field */
62
dulint row_id);/* in: row id */
63
/*********************************************************************
80
64
Initializes the data dictionary memory structures when the database is
81
65
started. This function is also called when the data dictionary is created. */
86
/*****************************************************************//**
70
/*********************************************************************
87
71
Creates and initializes the data dictionary at the database creation. */