336#ifndef UNIV_HOTBACKUP
uint32_t space_id_t
Tablespace identifier.
Definition: api0api.h:48
The database buffer pool high-level routines.
dberr_t
Definition: db0err.h:39
dict_col_sys_foreign_enum
Definition: dict0boot.h:237
@ DICT_COL__SYS_FOREIGN__REF_NAME
Definition: dict0boot.h:240
@ DICT_COL__SYS_FOREIGN__ID
Definition: dict0boot.h:238
@ DICT_NUM_COLS__SYS_FOREIGN
Definition: dict0boot.h:242
@ DICT_COL__SYS_FOREIGN__FOR_NAME
Definition: dict0boot.h:239
@ DICT_COL__SYS_FOREIGN__N_COLS
Definition: dict0boot.h:241
constexpr uint32_t DICT_HDR_TABLES
Root of SYS_TABLES clust index.
Definition: dict0boot.h:123
constexpr uint32_t DICT_FIELDS_ID
Definition: dict0boot.h:98
static 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_tables_enum
Definition: dict0boot.h:151
@ DICT_FLD__SYS_TABLES__SPACE
Definition: dict0boot.h:161
@ DICT_FLD__SYS_TABLES__MIX_ID
Definition: dict0boot.h:158
@ DICT_FLD__SYS_TABLES__DB_TRX_ID
Definition: dict0boot.h:153
@ DICT_FLD__SYS_TABLES__CLUSTER_ID
Definition: dict0boot.h:160
@ DICT_FLD__SYS_TABLES__ID
Definition: dict0boot.h:155
@ DICT_FLD__SYS_TABLES__TYPE
Definition: dict0boot.h:157
@ DICT_FLD__SYS_TABLES__NAME
Definition: dict0boot.h:152
@ DICT_FLD__SYS_TABLES__N_COLS
Definition: dict0boot.h:156
@ DICT_FLD__SYS_TABLES__MIX_LEN
Definition: dict0boot.h:159
@ DICT_NUM_FIELDS__SYS_TABLES
Definition: dict0boot.h:162
@ DICT_FLD__SYS_TABLES__DB_ROLL_PTR
Definition: dict0boot.h:154
dict_col_sys_fields_enum
Definition: dict0boot.h:221
@ DICT_COL__SYS_FIELDS__INDEX_ID
Definition: dict0boot.h:222
@ DICT_COL__SYS_FIELDS__POS
Definition: dict0boot.h:223
@ DICT_NUM_COLS__SYS_FIELDS
Definition: dict0boot.h:225
@ DICT_COL__SYS_FIELDS__COL_NAME
Definition: dict0boot.h:224
dict_col_sys_tablespaces_enum
Definition: dict0boot.h:279
@ DICT_COL__SYS_TABLESPACES__FLAGS
Definition: dict0boot.h:282
@ DICT_COL__SYS_TABLESPACES__SPACE
Definition: dict0boot.h:280
@ DICT_NUM_COLS__SYS_TABLESPACES
Definition: dict0boot.h:283
@ DICT_COL__SYS_TABLESPACES__NAME
Definition: dict0boot.h:281
dict_col_sys_columns_enum
Definition: dict0boot.h:171
@ DICT_NUM_COLS__SYS_COLUMNS
Definition: dict0boot.h:179
@ DICT_COL__SYS_COLUMNS__PRTYPE
Definition: dict0boot.h:176
@ DICT_COL__SYS_COLUMNS__PREC
Definition: dict0boot.h:178
@ DICT_COL__SYS_COLUMNS__TABLE_ID
Definition: dict0boot.h:172
@ DICT_COL__SYS_COLUMNS__MTYPE
Definition: dict0boot.h:175
@ DICT_COL__SYS_COLUMNS__LEN
Definition: dict0boot.h:177
@ DICT_COL__SYS_COLUMNS__NAME
Definition: dict0boot.h:174
@ DICT_COL__SYS_COLUMNS__POS
Definition: dict0boot.h:173
constexpr uint32_t DICT_HDR
Definition: dict0boot.h:108
constexpr uint32_t DICT_FLD_LEN_FLAGS
Definition: dict0boot.h:329
dberr_t dict_boot(void)
Initializes the data dictionary memory structures when the database is started.
Definition: dict0boot.cc:205
dict_fld_sys_virtual_enum
Definition: dict0boot.h:317
@ DICT_FLD__SYS_VIRTUAL__POS
Definition: dict0boot.h:319
@ DICT_FLD__SYS_VIRTUAL__DB_ROLL_PTR
Definition: dict0boot.h:322
@ DICT_FLD__SYS_VIRTUAL__BASE_POS
Definition: dict0boot.h:320
@ DICT_FLD__SYS_VIRTUAL__DB_TRX_ID
Definition: dict0boot.h:321
@ DICT_NUM_FIELDS__SYS_VIRTUAL
Definition: dict0boot.h:323
@ DICT_FLD__SYS_VIRTUAL__TABLE_ID
Definition: dict0boot.h:318
constexpr uint32_t DICT_TABLE_IDS_ID
Definition: dict0boot.h:100
dict_col_sys_foreign_cols_enum
Definition: dict0boot.h:261
@ DICT_COL__SYS_FOREIGN_COLS__ID
Definition: dict0boot.h:262
@ DICT_NUM_COLS__SYS_FOREIGN_COLS
Definition: dict0boot.h:266
@ DICT_COL__SYS_FOREIGN_COLS__FOR_COL_NAME
Definition: dict0boot.h:264
@ DICT_COL__SYS_FOREIGN_COLS__POS
Definition: dict0boot.h:263
@ DICT_COL__SYS_FOREIGN_COLS__REF_COL_NAME
Definition: dict0boot.h:265
constexpr uint32_t DICT_HDR_TABLE_IDS
Root of SYS_TABLE_IDS sec index.
Definition: dict0boot.h:125
dict_col_sys_indexes_enum
Definition: dict0boot.h:195
@ DICT_COL__SYS_INDEXES__ID
Definition: dict0boot.h:197
@ DICT_COL__SYS_INDEXES__TYPE
Definition: dict0boot.h:200
@ DICT_COL__SYS_INDEXES__PAGE_NO
Definition: dict0boot.h:202
@ DICT_NUM_COLS__SYS_INDEXES
Definition: dict0boot.h:204
@ DICT_COL__SYS_INDEXES__N_FIELDS
Definition: dict0boot.h:199
@ DICT_COL__SYS_INDEXES__NAME
Definition: dict0boot.h:198
@ DICT_COL__SYS_INDEXES__MERGE_THRESHOLD
Definition: dict0boot.h:203
@ DICT_COL__SYS_INDEXES__SPACE
Definition: dict0boot.h:201
@ DICT_COL__SYS_INDEXES__TABLE_ID
Definition: dict0boot.h:196
static row_id_t dict_sys_get_new_row_id(void)
Returns a new row id.
constexpr uint32_t DICT_HDR_COLUMNS
Root of SYS_COLUMNS clust index.
Definition: dict0boot.h:127
static 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.
constexpr uint32_t DICT_INDEXES_ID
Definition: dict0boot.h:97
static 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_foreign_cols_enum
Definition: dict0boot.h:269
@ DICT_FLD__SYS_FOREIGN_COLS__POS
Definition: dict0boot.h:271
@ DICT_FLD__SYS_FOREIGN_COLS__REF_COL_NAME
Definition: dict0boot.h:275
@ DICT_FLD__SYS_FOREIGN_COLS__DB_ROLL_PTR
Definition: dict0boot.h:273
@ DICT_FLD__SYS_FOREIGN_COLS__DB_TRX_ID
Definition: dict0boot.h:272
@ DICT_FLD__SYS_FOREIGN_COLS__ID
Definition: dict0boot.h:270
@ DICT_FLD__SYS_FOREIGN_COLS__FOR_COL_NAME
Definition: dict0boot.h:274
@ DICT_NUM_FIELDS__SYS_FOREIGN_COLS
Definition: dict0boot.h:276
byte dict_hdr_t
Definition: dict0boot.h:46
dberr_t dict_create(void)
Creates and initializes the data dictionary at the server bootstrap.
Definition: dict0boot.cc:441
constexpr uint32_t DICT_HDR_INDEX_ID
The latest assigned index id.
Definition: dict0boot.h:117
constexpr uint32_t DICT_HDR_FIRST_ID
the ids for tables etc.
Definition: dict0boot.h:105
dict_fld_sys_fields_enum
Definition: dict0boot.h:228
@ DICT_FLD__SYS_FIELDS__POS
Definition: dict0boot.h:230
@ DICT_NUM_FIELDS__SYS_FIELDS
Definition: dict0boot.h:234
@ DICT_FLD__SYS_FIELDS__INDEX_ID
Definition: dict0boot.h:229
@ DICT_FLD__SYS_FIELDS__DB_ROLL_PTR
Definition: dict0boot.h:232
@ DICT_FLD__SYS_FIELDS__DB_TRX_ID
Definition: dict0boot.h:231
@ DICT_FLD__SYS_FIELDS__COL_NAME
Definition: dict0boot.h:233
constexpr uint32_t DICT_HDR_TABLE_ID
The latest assigned table id.
Definition: dict0boot.h:115
dict_fld_sys_table_ids_enum
Definition: dict0boot.h:165
@ DICT_FLD__SYS_TABLE_IDS__ID
Definition: dict0boot.h:166
@ DICT_FLD__SYS_TABLE_IDS__NAME
Definition: dict0boot.h:167
@ DICT_NUM_FIELDS__SYS_TABLE_IDS
Definition: dict0boot.h:168
constexpr uint32_t DICT_FLD_LEN_SPACE
Definition: dict0boot.h:328
dict_hdr_t * dict_hdr_get(mtr_t *mtr)
Gets a pointer to the dictionary header and x-latches its page.
Definition: dict0boot.cc:50
dict_fld_sys_foreign_for_name_enum
Definition: dict0boot.h:255
@ DICT_FLD__SYS_FOREIGN_FOR_NAME__ID
Definition: dict0boot.h:257
@ DICT_FLD__SYS_FOREIGN_FOR_NAME__NAME
Definition: dict0boot.h:256
@ DICT_NUM_FIELDS__SYS_FOREIGN_FOR_NAME
Definition: dict0boot.h:258
constexpr uint32_t DICT_HDR_INDEXES
Root of SYS_INDEXES clust index.
Definition: dict0boot.h:129
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:70
dict_col_sys_tables_enum
Definition: dict0boot.h:139
@ DICT_COL__SYS_TABLES__SPACE
Definition: dict0boot.h:147
@ DICT_COL__SYS_TABLES__CLUSTER_ID
Definition: dict0boot.h:146
@ DICT_COL__SYS_TABLES__MIX_LEN
Definition: dict0boot.h:145
@ DICT_NUM_COLS__SYS_TABLES
Definition: dict0boot.h:148
@ DICT_COL__SYS_TABLES__MIX_ID
Definition: dict0boot.h:144
@ DICT_COL__SYS_TABLES__ID
Definition: dict0boot.h:141
@ DICT_COL__SYS_TABLES__NAME
Definition: dict0boot.h:140
@ DICT_COL__SYS_TABLES__N_COLS
Definition: dict0boot.h:142
@ DICT_COL__SYS_TABLES__TYPE
Definition: dict0boot.h:143
constexpr uint32_t DICT_COLUMNS_ID
Definition: dict0boot.h:96
constexpr uint32_t DICT_HDR_FSEG_HEADER
Definition: dict0boot.h:135
constexpr uint32_t DICT_HDR_MAX_SPACE_ID
The latest assigned space id,or 0.
Definition: dict0boot.h:119
constexpr uint32_t DICT_HDR_FIELDS
Root of SYS_FIELDS clust index.
Definition: dict0boot.h:131
constexpr uint32_t DICT_HDR_ROW_ID_WRITE_MARGIN
Definition: dict0boot.h:334
dict_fld_sys_datafiles_enum
Definition: dict0boot.h:301
@ DICT_NUM_FIELDS__SYS_DATAFILES
Definition: dict0boot.h:306
@ DICT_FLD__SYS_DATAFILES__SPACE
Definition: dict0boot.h:302
@ DICT_FLD__SYS_DATAFILES__PATH
Definition: dict0boot.h:305
@ DICT_FLD__SYS_DATAFILES__DB_ROLL_PTR
Definition: dict0boot.h:304
@ DICT_FLD__SYS_DATAFILES__DB_TRX_ID
Definition: dict0boot.h:303
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:151
dict_fld_sys_tablespaces_enum
Definition: dict0boot.h:286
@ DICT_FLD__SYS_TABLESPACES__FLAGS
Definition: dict0boot.h:291
@ DICT_FLD__SYS_TABLESPACES__DB_TRX_ID
Definition: dict0boot.h:288
@ DICT_FLD__SYS_TABLESPACES__NAME
Definition: dict0boot.h:290
@ DICT_NUM_FIELDS__SYS_TABLESPACES
Definition: dict0boot.h:292
@ DICT_FLD__SYS_TABLESPACES__DB_ROLL_PTR
Definition: dict0boot.h:289
@ DICT_FLD__SYS_TABLESPACES__SPACE
Definition: dict0boot.h:287
constexpr uint32_t DICT_HDR_ROW_ID
The latest assigned row id.
Definition: dict0boot.h:113
constexpr uint32_t DICT_HDR_MIX_ID_LOW
Obsolete,always DICT_HDR_FIRST_ID.
Definition: dict0boot.h:121
dict_col_sys_virtual_enum
Definition: dict0boot.h:310
@ DICT_COL__SYS_VIRTUAL__POS
Definition: dict0boot.h:312
@ DICT_NUM_COLS__SYS_VIRTUAL
Definition: dict0boot.h:314
@ DICT_COL__SYS_VIRTUAL__TABLE_ID
Definition: dict0boot.h:311
@ DICT_COL__SYS_VIRTUAL__BASE_POS
Definition: dict0boot.h:313
dict_fld_sys_indexes_enum
Definition: dict0boot.h:207
@ DICT_FLD__SYS_INDEXES__PAGE_NO
Definition: dict0boot.h:216
@ DICT_FLD__SYS_INDEXES__MERGE_THRESHOLD
Definition: dict0boot.h:217
@ DICT_FLD__SYS_INDEXES__NAME
Definition: dict0boot.h:212
@ DICT_NUM_FIELDS__SYS_INDEXES
Definition: dict0boot.h:218
@ DICT_FLD__SYS_INDEXES__ID
Definition: dict0boot.h:209
@ DICT_FLD__SYS_INDEXES__DB_TRX_ID
Definition: dict0boot.h:210
@ DICT_FLD__SYS_INDEXES__N_FIELDS
Definition: dict0boot.h:213
@ DICT_FLD__SYS_INDEXES__TABLE_ID
Definition: dict0boot.h:208
@ DICT_FLD__SYS_INDEXES__SPACE
Definition: dict0boot.h:215
@ DICT_FLD__SYS_INDEXES__DB_ROLL_PTR
Definition: dict0boot.h:211
@ DICT_FLD__SYS_INDEXES__TYPE
Definition: dict0boot.h:214
constexpr uint32_t DICT_TABLES_ID
The ids for the basic system tables and their indexes.
Definition: dict0boot.h:95
dict_fld_sys_foreign_enum
Definition: dict0boot.h:245
@ DICT_FLD__SYS_FOREIGN__FOR_NAME
Definition: dict0boot.h:249
@ DICT_FLD__SYS_FOREIGN__N_COLS
Definition: dict0boot.h:251
@ DICT_FLD__SYS_FOREIGN__DB_ROLL_PTR
Definition: dict0boot.h:248
@ DICT_NUM_FIELDS__SYS_FOREIGN
Definition: dict0boot.h:252
@ DICT_FLD__SYS_FOREIGN__REF_NAME
Definition: dict0boot.h:250
@ DICT_FLD__SYS_FOREIGN__DB_TRX_ID
Definition: dict0boot.h:247
@ DICT_FLD__SYS_FOREIGN__ID
Definition: dict0boot.h:246
dict_col_sys_datafiles_enum
Definition: dict0boot.h:295
@ DICT_NUM_COLS__SYS_DATAFILES
Definition: dict0boot.h:298
@ DICT_COL__SYS_DATAFILES__PATH
Definition: dict0boot.h:297
@ DICT_COL__SYS_DATAFILES__SPACE
Definition: dict0boot.h:296
dict_fld_sys_columns_enum
Definition: dict0boot.h:182
@ DICT_FLD__SYS_COLUMNS__PREC
Definition: dict0boot.h:191
@ DICT_FLD__SYS_COLUMNS__NAME
Definition: dict0boot.h:187
@ DICT_NUM_FIELDS__SYS_COLUMNS
Definition: dict0boot.h:192
@ DICT_FLD__SYS_COLUMNS__DB_TRX_ID
Definition: dict0boot.h:185
@ DICT_FLD__SYS_COLUMNS__LEN
Definition: dict0boot.h:190
@ DICT_FLD__SYS_COLUMNS__MTYPE
Definition: dict0boot.h:188
@ DICT_FLD__SYS_COLUMNS__TABLE_ID
Definition: dict0boot.h:183
@ DICT_FLD__SYS_COLUMNS__DB_ROLL_PTR
Definition: dict0boot.h:186
@ DICT_FLD__SYS_COLUMNS__PRTYPE
Definition: dict0boot.h:189
@ DICT_FLD__SYS_COLUMNS__POS
Definition: dict0boot.h:184
Data dictionary creation and booting.
ib_id_t space_index_t
Index identifier (unique within a tablespace).
Definition: dict0types.h:234
ib_id_t table_id_t
Table or partition identifier (unique within an InnoDB instance).
Definition: dict0types.h:232
constexpr uint32_t FSEG_PAGE_DATA
On a page of any file segment, data may be put starting from this offset.
Definition: fsp0types.h:79
Mini-transaction logging routines.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Data structure for a database table.
Definition: dict0mem.h:1904
Mini-transaction handle and buffer.
Definition: mtr0mtr.h:177
ib_id_t row_id_t
Row identifier (DB_ROW_ID, DATA_ROW_ID)
Definition: trx0types.h:132
Version control for database, common definitions, and include files.
Utilities for byte operations.