MySQL  8.0.19
Source Code Documentation
dict0boot.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 1996, 2018, Oracle and/or its affiliates. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License, version 2.0, as published by the
7 Free Software Foundation.
8 
9 This program is also distributed with certain software (including but not
10 limited to OpenSSL) that is licensed under separate terms, as designated in a
11 particular file or component or in included license documentation. The authors
12 of MySQL hereby grant you an additional permission to link the program and
13 your derivative works with the separately licensed software that they have
14 included with MySQL.
15 
16 This program is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18 FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
19 for more details.
20 
21 You should have received a copy of the GNU General Public License along with
22 this program; if not, write to the Free Software Foundation, Inc.,
23 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 
25 *****************************************************************************/
26 
27 /** @file include/dict0boot.h
28  Data dictionary creation and booting
29 
30  Created 4/18/1996 Heikki Tuuri
31  *******************************************************/
32 
33 #ifndef dict0boot_h
34 #define dict0boot_h
35 
36 #include "univ.i"
37 
38 #include "buf0buf.h"
39 #include "dict0dict.h"
40 #include "fsp0fsp.h"
41 #include "mtr0log.h"
42 #include "mtr0mtr.h"
43 #include "ut0byte.h"
44 
45 typedef byte dict_hdr_t;
46 
47 /** Gets a pointer to the dictionary header and x-latches its page.
48  @return pointer to the dictionary header, page x-latched */
49 dict_hdr_t *dict_hdr_get(mtr_t *mtr); /*!< in: mtr */
50 /** Returns a new table, index, or space id. */
51 void dict_hdr_get_new_id(table_id_t *table_id, /*!< out: table id
52  (not assigned if NULL) */
53  space_index_t *index_id, /*!< out: index id
54  (not assigned if NULL) */
55  space_id_t *space_id, /*!< out: space id
56  (not assigned if NULL) */
57  const dict_table_t *table, /*!< in: table */
58  bool disable_redo); /*!< in: if true and table
59  object is NULL
60  then disable-redo */
61 /** Writes the current value of the row id counter to the dictionary header file
62  page. */
63 void dict_hdr_flush_row_id(void);
64 /** Returns a new row id.
65  @return the new id */
66 UNIV_INLINE
68 /** Reads a row id from a record or other 6-byte stored form.
69  @return row id */
70 UNIV_INLINE
71 row_id_t dict_sys_read_row_id(const byte *field); /*!< in: record field */
72 
73 /** Writes a row id to a record or other 6-byte stored form.
74 @param[in] field record field
75 @param[in] row_id row id */
76 UNIV_INLINE
77 void dict_sys_write_row_id(byte *field, row_id_t row_id);
78 
79 /** Initializes the data dictionary memory structures when the database is
80  started. This function is also called when the data dictionary is created.
81  @return DB_SUCCESS or error code. */
82 dberr_t dict_boot(void) MY_ATTRIBUTE((warn_unused_result));
83 
84 /** Creates and initializes the data dictionary at the server bootstrap.
85  @return DB_SUCCESS or error code. */
86 dberr_t dict_create(void) MY_ATTRIBUTE((warn_unused_result));
87 
88 /** Check if a table id belongs to old innodb internal system table.
89 @param[in] id table id
90 @return true if the table id belongs to a system table. */
91 UNIV_INLINE
92 bool dict_is_old_sys_table(table_id_t id) MY_ATTRIBUTE((warn_unused_result));
93 
94 /* Space id and page no where the dictionary header resides */
95 #define DICT_HDR_SPACE 0 /* the SYSTEM tablespace */
96 #define DICT_HDR_PAGE_NO FSP_DICT_HDR_PAGE_NO
97 
98 /* The ids for the basic system tables and their indexes */
99 #define DICT_TABLES_ID 1
100 #define DICT_COLUMNS_ID 2
101 #define DICT_INDEXES_ID 3
102 #define DICT_FIELDS_ID 4
103 /* The following is a secondary index on SYS_TABLES */
104 #define DICT_TABLE_IDS_ID 5
105 
106 #define DICT_HDR_FIRST_ID \
107  10 /* the ids for tables etc. start \
108  from this number, except for basic \
109  system tables and their above defined \
110  indexes; ibuf tables and indexes are \
111  assigned as the id the number \
112  DICT_IBUF_ID_MIN plus the space id */
113 
114 /* The offset of the dictionary header on the page */
115 #define DICT_HDR FSEG_PAGE_DATA
116 
117 /*-------------------------------------------------------------*/
118 /* Dictionary header offsets */
119 #define DICT_HDR_ROW_ID 0 /* The latest assigned row id */
120 #define DICT_HDR_TABLE_ID 8 /* The latest assigned table id */
121 #define DICT_HDR_INDEX_ID 16 /* The latest assigned index id */
122 #define DICT_HDR_MAX_SPACE_ID 24 /* The latest assigned space id,or 0*/
123 #define DICT_HDR_MIX_ID_LOW 28 /* Obsolete,always DICT_HDR_FIRST_ID*/
124 #define DICT_HDR_TABLES 32 /* Root of SYS_TABLES clust index */
125 #define DICT_HDR_TABLE_IDS 36 /* Root of SYS_TABLE_IDS sec index */
126 #define DICT_HDR_COLUMNS 40 /* Root of SYS_COLUMNS clust index */
127 #define DICT_HDR_INDEXES 44 /* Root of SYS_INDEXES clust index */
128 #define DICT_HDR_FIELDS 48 /* Root of SYS_FIELDS clust index */
129 
130 #define DICT_HDR_FSEG_HEADER \
131  56 /* Segment header for the tablespace \
132  segment into which the dictionary \
133  header is created */
134 /*-------------------------------------------------------------*/
135 
136 /* The columns in SYS_TABLES */
147 };
148 /* The field numbers in the SYS_TABLES clustered index */
161 };
162 /* The field numbers in the SYS_TABLE_IDS index */
167 };
168 /* The columns in SYS_COLUMNS */
178 };
179 /* The field numbers in the SYS_COLUMNS clustered index */
191 };
192 /* The columns in SYS_INDEXES */
203 };
204 /* The field numbers in the SYS_INDEXES clustered index */
217 };
218 /* The columns in SYS_FIELDS */
224 };
225 /* The field numbers in the SYS_FIELDS clustered index */
233 };
234 /* The columns in SYS_FOREIGN */
241 };
242 /* The field numbers in the SYS_FOREIGN clustered index */
251 };
252 /* The field numbers in the SYS_FOREIGN_FOR_NAME secondary index */
257 };
258 /* The columns in SYS_FOREIGN_COLS */
265 };
266 /* The field numbers in the SYS_FOREIGN_COLS clustered index */
275 };
276 /* The columns in SYS_TABLESPACES */
282 };
283 /* The field numbers in the SYS_TABLESPACES clustered index */
291 };
292 /* The columns in SYS_DATAFILES */
297 };
298 /* The field numbers in the SYS_DATAFILES clustered index */
305 };
306 
307 /* The columns in SYS_VIRTUAL */
313 };
314 /* The field numbers in the SYS_VIRTUAL clustered index */
322 };
323 
324 /* A number of the columns above occur in multiple tables. These are the
325 length of thos fields. */
326 #define DICT_FLD_LEN_SPACE 4
327 #define DICT_FLD_LEN_FLAGS 4
328 
329 /* When a row id which is zero modulo this number (which must be a power of
330 two) is assigned, the field DICT_HDR_ROW_ID on the dictionary header page is
331 updated */
332 #define DICT_HDR_ROW_ID_WRITE_MARGIN 256
333 
334 #ifndef UNIV_HOTBACKUP
335 #include "dict0boot.ic"
336 #endif /* !UNIV_HOTBACKUP */
337 
338 #endif
DICT_FLD__SYS_TABLESPACES__FLAGS
@ DICT_FLD__SYS_TABLESPACES__FLAGS
Definition: dict0boot.h:282
DICT_COL__SYS_DATAFILES__PATH
@ DICT_COL__SYS_DATAFILES__PATH
Definition: dict0boot.h:288
DICT_NUM_COLS__SYS_FOREIGN
@ DICT_NUM_COLS__SYS_FOREIGN
Definition: dict0boot.h:233
DICT_COL__SYS_TABLES__ID
@ DICT_COL__SYS_TABLES__ID
Definition: dict0boot.h:132
DICT_FLD__SYS_INDEXES__DB_ROLL_PTR
@ DICT_FLD__SYS_INDEXES__DB_ROLL_PTR
Definition: dict0boot.h:202
dict_create
dberr_t dict_create(void)
Creates and initializes the data dictionary at the server bootstrap.
Definition: dict0boot.cc:440
dict_boot
dberr_t dict_boot(void)
Initializes the data dictionary memory structures when the database is started.
Definition: dict0boot.cc:206
DICT_NUM_FIELDS__SYS_FOREIGN_FOR_NAME
@ DICT_NUM_FIELDS__SYS_FOREIGN_FOR_NAME
Definition: dict0boot.h:249
DICT_FLD__SYS_TABLES__ID
@ DICT_FLD__SYS_TABLES__ID
Definition: dict0boot.h:146
DICT_COL__SYS_COLUMNS__PREC
@ DICT_COL__SYS_COLUMNS__PREC
Definition: dict0boot.h:169
DICT_FLD__SYS_INDEXES__TABLE_ID
@ DICT_FLD__SYS_INDEXES__TABLE_ID
Definition: dict0boot.h:199
DICT_COL__SYS_INDEXES__N_FIELDS
@ DICT_COL__SYS_INDEXES__N_FIELDS
Definition: dict0boot.h:190
DICT_FLD__SYS_INDEXES__N_FIELDS
@ DICT_FLD__SYS_INDEXES__N_FIELDS
Definition: dict0boot.h:204
DICT_FLD__SYS_COLUMNS__LEN
@ DICT_FLD__SYS_COLUMNS__LEN
Definition: dict0boot.h:181
DICT_COL__SYS_COLUMNS__NAME
@ DICT_COL__SYS_COLUMNS__NAME
Definition: dict0boot.h:165
DICT_NUM_FIELDS__SYS_TABLESPACES
@ DICT_NUM_FIELDS__SYS_TABLESPACES
Definition: dict0boot.h:283
DICT_FLD__SYS_FOREIGN__ID
@ DICT_FLD__SYS_FOREIGN__ID
Definition: dict0boot.h:237
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.
Definition: dict0boot.cc:152
DICT_FLD__SYS_DATAFILES__PATH
@ DICT_FLD__SYS_DATAFILES__PATH
Definition: dict0boot.h:296
DICT_NUM_FIELDS__SYS_FOREIGN_COLS
@ DICT_NUM_FIELDS__SYS_FOREIGN_COLS
Definition: dict0boot.h:267
fsp0fsp.h
mtr_t
Mini-transaction handle and buffer.
Definition: mtr0mtr.h:169
dict_fld_sys_foreign_for_name_enum
dict_fld_sys_foreign_for_name_enum
Definition: dict0boot.h:246
DICT_FLD__SYS_INDEXES__DB_TRX_ID
@ DICT_FLD__SYS_INDEXES__DB_TRX_ID
Definition: dict0boot.h:201
dict_sys_read_row_id
UNIV_INLINE row_id_t dict_sys_read_row_id(const byte *field)
Reads a row id from a record or other 6-byte stored form.
dict_fld_sys_tablespaces_enum
dict_fld_sys_tablespaces_enum
Definition: dict0boot.h:277
DICT_FLD__SYS_FOREIGN_COLS__ID
@ DICT_FLD__SYS_FOREIGN_COLS__ID
Definition: dict0boot.h:261
DICT_COL__SYS_TABLESPACES__FLAGS
@ DICT_COL__SYS_TABLESPACES__FLAGS
Definition: dict0boot.h:273
DICT_FLD__SYS_TABLESPACES__SPACE
@ DICT_FLD__SYS_TABLESPACES__SPACE
Definition: dict0boot.h:278
DICT_COL__SYS_COLUMNS__POS
@ DICT_COL__SYS_COLUMNS__POS
Definition: dict0boot.h:164
DICT_NUM_COLS__SYS_FIELDS
@ DICT_NUM_COLS__SYS_FIELDS
Definition: dict0boot.h:216
DICT_COL__SYS_FOREIGN__N_COLS
@ DICT_COL__SYS_FOREIGN__N_COLS
Definition: dict0boot.h:232
dict_fld_sys_columns_enum
dict_fld_sys_columns_enum
Definition: dict0boot.h:173
dict_is_old_sys_table
UNIV_INLINE bool dict_is_old_sys_table(table_id_t id)
Check if a table id belongs to old innodb internal system table.
DICT_FLD__SYS_TABLESPACES__NAME
@ DICT_FLD__SYS_TABLESPACES__NAME
Definition: dict0boot.h:281
DICT_COL__SYS_TABLES__CLUSTER_ID
@ DICT_COL__SYS_TABLES__CLUSTER_ID
Definition: dict0boot.h:137
DICT_FLD__SYS_TABLES__TYPE
@ DICT_FLD__SYS_TABLES__TYPE
Definition: dict0boot.h:148
DICT_NUM_COLS__SYS_COLUMNS
@ DICT_NUM_COLS__SYS_COLUMNS
Definition: dict0boot.h:170
buf0buf.h
dict_hdr_t
byte dict_hdr_t
Definition: dict0boot.h:45
DICT_COL__SYS_TABLES__NAME
@ DICT_COL__SYS_TABLES__NAME
Definition: dict0boot.h:131
dberr_t
dberr_t
Definition: db0err.h:38
dict_col_sys_datafiles_enum
dict_col_sys_datafiles_enum
Definition: dict0boot.h:286
dict_fld_sys_foreign_cols_enum
dict_fld_sys_foreign_cols_enum
Definition: dict0boot.h:260
DICT_FLD__SYS_VIRTUAL__DB_TRX_ID
@ DICT_FLD__SYS_VIRTUAL__DB_TRX_ID
Definition: dict0boot.h:312
DICT_FLD__SYS_COLUMNS__POS
@ DICT_FLD__SYS_COLUMNS__POS
Definition: dict0boot.h:175
dict_table_t
Data structure for a database table.
Definition: dict0mem.h:1510
DICT_FLD__SYS_FIELDS__COL_NAME
@ DICT_FLD__SYS_FIELDS__COL_NAME
Definition: dict0boot.h:224
DICT_COL__SYS_FIELDS__INDEX_ID
@ DICT_COL__SYS_FIELDS__INDEX_ID
Definition: dict0boot.h:213
dict_col_sys_tables_enum
dict_col_sys_tables_enum
Definition: dict0boot.h:130
DICT_FLD__SYS_FOREIGN_COLS__FOR_COL_NAME
@ DICT_FLD__SYS_FOREIGN_COLS__FOR_COL_NAME
Definition: dict0boot.h:265
DICT_COL__SYS_TABLES__N_COLS
@ DICT_COL__SYS_TABLES__N_COLS
Definition: dict0boot.h:133
DICT_FLD__SYS_FOREIGN_COLS__DB_ROLL_PTR
@ DICT_FLD__SYS_FOREIGN_COLS__DB_ROLL_PTR
Definition: dict0boot.h:264
DICT_COL__SYS_INDEXES__TYPE
@ DICT_COL__SYS_INDEXES__TYPE
Definition: dict0boot.h:191
DICT_COL__SYS_COLUMNS__MTYPE
@ DICT_COL__SYS_COLUMNS__MTYPE
Definition: dict0boot.h:166
DICT_COL__SYS_FOREIGN_COLS__POS
@ DICT_COL__SYS_FOREIGN_COLS__POS
Definition: dict0boot.h:254
DICT_FLD__SYS_TABLES__NAME
@ DICT_FLD__SYS_TABLES__NAME
Definition: dict0boot.h:143
DICT_FLD__SYS_TABLES__SPACE
@ DICT_FLD__SYS_TABLES__SPACE
Definition: dict0boot.h:152
DICT_COL__SYS_VIRTUAL__BASE_POS
@ DICT_COL__SYS_VIRTUAL__BASE_POS
Definition: dict0boot.h:304
DICT_FLD__SYS_INDEXES__TYPE
@ DICT_FLD__SYS_INDEXES__TYPE
Definition: dict0boot.h:205
DICT_COL__SYS_TABLES__SPACE
@ DICT_COL__SYS_TABLES__SPACE
Definition: dict0boot.h:138
DICT_FLD__SYS_FOREIGN_FOR_NAME__NAME
@ DICT_FLD__SYS_FOREIGN_FOR_NAME__NAME
Definition: dict0boot.h:247
DICT_FLD__SYS_FOREIGN_COLS__REF_COL_NAME
@ DICT_FLD__SYS_FOREIGN_COLS__REF_COL_NAME
Definition: dict0boot.h:266
DICT_COL__SYS_FOREIGN__ID
@ DICT_COL__SYS_FOREIGN__ID
Definition: dict0boot.h:229
DICT_NUM_COLS__SYS_DATAFILES
@ DICT_NUM_COLS__SYS_DATAFILES
Definition: dict0boot.h:289
DICT_FLD__SYS_TABLESPACES__DB_TRX_ID
@ DICT_FLD__SYS_TABLESPACES__DB_TRX_ID
Definition: dict0boot.h:279
DICT_FLD__SYS_COLUMNS__DB_ROLL_PTR
@ DICT_FLD__SYS_COLUMNS__DB_ROLL_PTR
Definition: dict0boot.h:177
DICT_COL__SYS_TABLESPACES__SPACE
@ DICT_COL__SYS_TABLESPACES__SPACE
Definition: dict0boot.h:271
DICT_FLD__SYS_DATAFILES__DB_ROLL_PTR
@ DICT_FLD__SYS_DATAFILES__DB_ROLL_PTR
Definition: dict0boot.h:295
DICT_FLD__SYS_VIRTUAL__BASE_POS
@ DICT_FLD__SYS_VIRTUAL__BASE_POS
Definition: dict0boot.h:311
DICT_COL__SYS_TABLES__MIX_ID
@ DICT_COL__SYS_TABLES__MIX_ID
Definition: dict0boot.h:135
DICT_FLD__SYS_INDEXES__NAME
@ DICT_FLD__SYS_INDEXES__NAME
Definition: dict0boot.h:203
DICT_COL__SYS_FOREIGN__FOR_NAME
@ DICT_COL__SYS_FOREIGN__FOR_NAME
Definition: dict0boot.h:230
DICT_FLD__SYS_INDEXES__SPACE
@ DICT_FLD__SYS_INDEXES__SPACE
Definition: dict0boot.h:206
DICT_COL__SYS_COLUMNS__TABLE_ID
@ DICT_COL__SYS_COLUMNS__TABLE_ID
Definition: dict0boot.h:163
DICT_FLD__SYS_FIELDS__INDEX_ID
@ DICT_FLD__SYS_FIELDS__INDEX_ID
Definition: dict0boot.h:220
DICT_NUM_FIELDS__SYS_DATAFILES
@ DICT_NUM_FIELDS__SYS_DATAFILES
Definition: dict0boot.h:297
DICT_NUM_FIELDS__SYS_COLUMNS
@ DICT_NUM_FIELDS__SYS_COLUMNS
Definition: dict0boot.h:183
DICT_COL__SYS_COLUMNS__LEN
@ DICT_COL__SYS_COLUMNS__LEN
Definition: dict0boot.h:168
DICT_FLD__SYS_INDEXES__ID
@ DICT_FLD__SYS_INDEXES__ID
Definition: dict0boot.h:200
DICT_FLD__SYS_TABLE_IDS__ID
@ DICT_FLD__SYS_TABLE_IDS__ID
Definition: dict0boot.h:157
table_id_t
ib_id_t table_id_t
Table or partition identifier (unique within an InnoDB instance).
Definition: dict0types.h:215
DICT_COL__SYS_TABLES__MIX_LEN
@ DICT_COL__SYS_TABLES__MIX_LEN
Definition: dict0boot.h:136
DICT_NUM_COLS__SYS_TABLES
@ DICT_NUM_COLS__SYS_TABLES
Definition: dict0boot.h:139
dict_fld_sys_virtual_enum
dict_fld_sys_virtual_enum
Definition: dict0boot.h:308
DICT_COL__SYS_INDEXES__TABLE_ID
@ DICT_COL__SYS_INDEXES__TABLE_ID
Definition: dict0boot.h:187
DICT_FLD__SYS_FOREIGN__REF_NAME
@ DICT_FLD__SYS_FOREIGN__REF_NAME
Definition: dict0boot.h:241
DICT_FLD__SYS_TABLES__DB_ROLL_PTR
@ DICT_FLD__SYS_TABLES__DB_ROLL_PTR
Definition: dict0boot.h:145
DICT_COL__SYS_FOREIGN__REF_NAME
@ DICT_COL__SYS_FOREIGN__REF_NAME
Definition: dict0boot.h:231
mtr0log.h
DICT_FLD__SYS_COLUMNS__DB_TRX_ID
@ DICT_FLD__SYS_COLUMNS__DB_TRX_ID
Definition: dict0boot.h:176
space_index_t
ib_id_t space_index_t
Index identifier (unique within a tablespace).
Definition: dict0types.h:217
DICT_COL__SYS_FOREIGN_COLS__ID
@ DICT_COL__SYS_FOREIGN_COLS__ID
Definition: dict0boot.h:253
DICT_FLD__SYS_INDEXES__PAGE_NO
@ DICT_FLD__SYS_INDEXES__PAGE_NO
Definition: dict0boot.h:207
DICT_COL__SYS_TABLESPACES__NAME
@ DICT_COL__SYS_TABLESPACES__NAME
Definition: dict0boot.h:272
DICT_COL__SYS_FOREIGN_COLS__FOR_COL_NAME
@ DICT_COL__SYS_FOREIGN_COLS__FOR_COL_NAME
Definition: dict0boot.h:255
dict_col_sys_virtual_enum
dict_col_sys_virtual_enum
Definition: dict0boot.h:301
DICT_COL__SYS_FIELDS__COL_NAME
@ DICT_COL__SYS_FIELDS__COL_NAME
Definition: dict0boot.h:215
DICT_NUM_FIELDS__SYS_TABLE_IDS
@ DICT_NUM_FIELDS__SYS_TABLE_IDS
Definition: dict0boot.h:159
DICT_COL__SYS_INDEXES__MERGE_THRESHOLD
@ DICT_COL__SYS_INDEXES__MERGE_THRESHOLD
Definition: dict0boot.h:194
DICT_COL__SYS_INDEXES__SPACE
@ DICT_COL__SYS_INDEXES__SPACE
Definition: dict0boot.h:192
dict_col_sys_foreign_cols_enum
dict_col_sys_foreign_cols_enum
Definition: dict0boot.h:252
DICT_FLD__SYS_TABLES__N_COLS
@ DICT_FLD__SYS_TABLES__N_COLS
Definition: dict0boot.h:147
DICT_FLD__SYS_FIELDS__DB_ROLL_PTR
@ DICT_FLD__SYS_FIELDS__DB_ROLL_PTR
Definition: dict0boot.h:223
DICT_COL__SYS_TABLES__TYPE
@ DICT_COL__SYS_TABLES__TYPE
Definition: dict0boot.h:134
dict_fld_sys_fields_enum
dict_fld_sys_fields_enum
Definition: dict0boot.h:219
DICT_COL__SYS_DATAFILES__SPACE
@ DICT_COL__SYS_DATAFILES__SPACE
Definition: dict0boot.h:287
dict_col_sys_fields_enum
dict_col_sys_fields_enum
Definition: dict0boot.h:212
DICT_NUM_COLS__SYS_TABLESPACES
@ DICT_NUM_COLS__SYS_TABLESPACES
Definition: dict0boot.h:274
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.
Definition: dict0boot.cc:64
DICT_FLD__SYS_COLUMNS__PREC
@ DICT_FLD__SYS_COLUMNS__PREC
Definition: dict0boot.h:182
dict_col_sys_tablespaces_enum
dict_col_sys_tablespaces_enum
Definition: dict0boot.h:270
DICT_COL__SYS_VIRTUAL__POS
@ DICT_COL__SYS_VIRTUAL__POS
Definition: dict0boot.h:303
DICT_FLD__SYS_FIELDS__DB_TRX_ID
@ DICT_FLD__SYS_FIELDS__DB_TRX_ID
Definition: dict0boot.h:222
DICT_COL__SYS_VIRTUAL__TABLE_ID
@ DICT_COL__SYS_VIRTUAL__TABLE_ID
Definition: dict0boot.h:302
DICT_COL__SYS_FOREIGN_COLS__REF_COL_NAME
@ DICT_COL__SYS_FOREIGN_COLS__REF_COL_NAME
Definition: dict0boot.h:256
dict_col_sys_foreign_enum
dict_col_sys_foreign_enum
Definition: dict0boot.h:228
dict_col_sys_indexes_enum
dict_col_sys_indexes_enum
Definition: dict0boot.h:186
DICT_NUM_FIELDS__SYS_INDEXES
@ DICT_NUM_FIELDS__SYS_INDEXES
Definition: dict0boot.h:209
DICT_FLD__SYS_TABLESPACES__DB_ROLL_PTR
@ DICT_FLD__SYS_TABLESPACES__DB_ROLL_PTR
Definition: dict0boot.h:280
row_id_t
ib_id_t row_id_t
Row identifier (DB_ROW_ID, DATA_ROW_ID)
Definition: trx0types.h:142
dict_fld_sys_foreign_enum
dict_fld_sys_foreign_enum
Definition: dict0boot.h:236
DICT_FLD__SYS_TABLES__MIX_LEN
@ DICT_FLD__SYS_TABLES__MIX_LEN
Definition: dict0boot.h:150
DICT_FLD__SYS_TABLES__DB_TRX_ID
@ DICT_FLD__SYS_TABLES__DB_TRX_ID
Definition: dict0boot.h:144
DICT_FLD__SYS_FOREIGN_FOR_NAME__ID
@ DICT_FLD__SYS_FOREIGN_FOR_NAME__ID
Definition: dict0boot.h:248
DICT_COL__SYS_INDEXES__ID
@ DICT_COL__SYS_INDEXES__ID
Definition: dict0boot.h:188
dict_fld_sys_datafiles_enum
dict_fld_sys_datafiles_enum
Definition: dict0boot.h:292
dict_sys_write_row_id
UNIV_INLINE void dict_sys_write_row_id(byte *field, row_id_t row_id)
Writes a row id to a record or other 6-byte stored form.
DICT_NUM_FIELDS__SYS_FOREIGN
@ DICT_NUM_FIELDS__SYS_FOREIGN
Definition: dict0boot.h:243
DICT_COL__SYS_COLUMNS__PRTYPE
@ DICT_COL__SYS_COLUMNS__PRTYPE
Definition: dict0boot.h:167
DICT_NUM_FIELDS__SYS_VIRTUAL
@ DICT_NUM_FIELDS__SYS_VIRTUAL
Definition: dict0boot.h:314
DICT_FLD__SYS_FOREIGN__FOR_NAME
@ DICT_FLD__SYS_FOREIGN__FOR_NAME
Definition: dict0boot.h:240
DICT_FLD__SYS_INDEXES__MERGE_THRESHOLD
@ DICT_FLD__SYS_INDEXES__MERGE_THRESHOLD
Definition: dict0boot.h:208
dict_fld_sys_table_ids_enum
dict_fld_sys_table_ids_enum
Definition: dict0boot.h:156
DICT_FLD__SYS_COLUMNS__TABLE_ID
@ DICT_FLD__SYS_COLUMNS__TABLE_ID
Definition: dict0boot.h:174
DICT_NUM_FIELDS__SYS_TABLES
@ DICT_NUM_FIELDS__SYS_TABLES
Definition: dict0boot.h:153
mtr0mtr.h
space_id_t
uint32 space_id_t
Tablespace identifier.
Definition: api0api.h:59
DICT_FLD__SYS_VIRTUAL__TABLE_ID
@ DICT_FLD__SYS_VIRTUAL__TABLE_ID
Definition: dict0boot.h:309
DICT_FLD__SYS_FOREIGN_COLS__POS
@ DICT_FLD__SYS_FOREIGN_COLS__POS
Definition: dict0boot.h:262
DICT_FLD__SYS_FOREIGN_COLS__DB_TRX_ID
@ DICT_FLD__SYS_FOREIGN_COLS__DB_TRX_ID
Definition: dict0boot.h:263
dict_fld_sys_tables_enum
dict_fld_sys_tables_enum
Definition: dict0boot.h:142
DICT_COL__SYS_INDEXES__PAGE_NO
@ DICT_COL__SYS_INDEXES__PAGE_NO
Definition: dict0boot.h:193
DICT_NUM_COLS__SYS_INDEXES
@ DICT_NUM_COLS__SYS_INDEXES
Definition: dict0boot.h:195
DICT_FLD__SYS_TABLE_IDS__NAME
@ DICT_FLD__SYS_TABLE_IDS__NAME
Definition: dict0boot.h:158
DICT_NUM_COLS__SYS_FOREIGN_COLS
@ DICT_NUM_COLS__SYS_FOREIGN_COLS
Definition: dict0boot.h:257
DICT_FLD__SYS_VIRTUAL__POS
@ DICT_FLD__SYS_VIRTUAL__POS
Definition: dict0boot.h:310
DICT_NUM_COLS__SYS_VIRTUAL
@ DICT_NUM_COLS__SYS_VIRTUAL
Definition: dict0boot.h:305
DICT_FLD__SYS_TABLES__CLUSTER_ID
@ DICT_FLD__SYS_TABLES__CLUSTER_ID
Definition: dict0boot.h:151
dict_sys_get_new_row_id
UNIV_INLINE row_id_t dict_sys_get_new_row_id(void)
Returns a new row id.
DICT_COL__SYS_FIELDS__POS
@ DICT_COL__SYS_FIELDS__POS
Definition: dict0boot.h:214
DICT_FLD__SYS_TABLES__MIX_ID
@ DICT_FLD__SYS_TABLES__MIX_ID
Definition: dict0boot.h:149
DICT_FLD__SYS_COLUMNS__PRTYPE
@ DICT_FLD__SYS_COLUMNS__PRTYPE
Definition: dict0boot.h:180
DICT_FLD__SYS_FOREIGN__DB_TRX_ID
@ DICT_FLD__SYS_FOREIGN__DB_TRX_ID
Definition: dict0boot.h:238
DICT_FLD__SYS_VIRTUAL__DB_ROLL_PTR
@ DICT_FLD__SYS_VIRTUAL__DB_ROLL_PTR
Definition: dict0boot.h:313
dict_col_sys_columns_enum
dict_col_sys_columns_enum
Definition: dict0boot.h:162
dict_fld_sys_indexes_enum
dict_fld_sys_indexes_enum
Definition: dict0boot.h:198
DICT_COL__SYS_INDEXES__NAME
@ DICT_COL__SYS_INDEXES__NAME
Definition: dict0boot.h:189
DICT_FLD__SYS_COLUMNS__MTYPE
@ DICT_FLD__SYS_COLUMNS__MTYPE
Definition: dict0boot.h:179
DICT_FLD__SYS_DATAFILES__SPACE
@ DICT_FLD__SYS_DATAFILES__SPACE
Definition: dict0boot.h:293
DICT_FLD__SYS_FOREIGN__DB_ROLL_PTR
@ DICT_FLD__SYS_FOREIGN__DB_ROLL_PTR
Definition: dict0boot.h:239
DICT_NUM_FIELDS__SYS_FIELDS
@ DICT_NUM_FIELDS__SYS_FIELDS
Definition: dict0boot.h:225
dict0dict.h
DICT_FLD__SYS_FOREIGN__N_COLS
@ DICT_FLD__SYS_FOREIGN__N_COLS
Definition: dict0boot.h:242
dict_hdr_get
dict_hdr_t * dict_hdr_get(mtr_t *mtr)
Gets a pointer to the dictionary header and x-latches its page.
Definition: dict0boot.cc:49
DICT_FLD__SYS_FIELDS__POS
@ DICT_FLD__SYS_FIELDS__POS
Definition: dict0boot.h:221
DICT_FLD__SYS_DATAFILES__DB_TRX_ID
@ DICT_FLD__SYS_DATAFILES__DB_TRX_ID
Definition: dict0boot.h:294
ut0byte.h
DICT_FLD__SYS_COLUMNS__NAME
@ DICT_FLD__SYS_COLUMNS__NAME
Definition: dict0boot.h:178