335#ifndef UNIV_HOTBACKUP
uint32_t space_id_t
Tablespace identifier.
Definition: api0api.h:50
The database buffer pool high-level routines.
dberr_t
Definition: db0err.h:38
dict_col_sys_foreign_enum
Definition: dict0boot.h:236
@ DICT_COL__SYS_FOREIGN__REF_NAME
Definition: dict0boot.h:239
@ DICT_COL__SYS_FOREIGN__ID
Definition: dict0boot.h:237
@ DICT_NUM_COLS__SYS_FOREIGN
Definition: dict0boot.h:241
@ DICT_COL__SYS_FOREIGN__FOR_NAME
Definition: dict0boot.h:238
@ DICT_COL__SYS_FOREIGN__N_COLS
Definition: dict0boot.h:240
constexpr uint32_t DICT_HDR_TABLES
Root of SYS_TABLES clust index.
Definition: dict0boot.h:122
constexpr uint32_t DICT_FIELDS_ID
Definition: dict0boot.h:97
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:150
@ DICT_FLD__SYS_TABLES__SPACE
Definition: dict0boot.h:160
@ DICT_FLD__SYS_TABLES__MIX_ID
Definition: dict0boot.h:157
@ DICT_FLD__SYS_TABLES__DB_TRX_ID
Definition: dict0boot.h:152
@ DICT_FLD__SYS_TABLES__CLUSTER_ID
Definition: dict0boot.h:159
@ DICT_FLD__SYS_TABLES__ID
Definition: dict0boot.h:154
@ DICT_FLD__SYS_TABLES__TYPE
Definition: dict0boot.h:156
@ DICT_FLD__SYS_TABLES__NAME
Definition: dict0boot.h:151
@ DICT_FLD__SYS_TABLES__N_COLS
Definition: dict0boot.h:155
@ DICT_FLD__SYS_TABLES__MIX_LEN
Definition: dict0boot.h:158
@ DICT_NUM_FIELDS__SYS_TABLES
Definition: dict0boot.h:161
@ DICT_FLD__SYS_TABLES__DB_ROLL_PTR
Definition: dict0boot.h:153
dict_col_sys_fields_enum
Definition: dict0boot.h:220
@ DICT_COL__SYS_FIELDS__INDEX_ID
Definition: dict0boot.h:221
@ DICT_COL__SYS_FIELDS__POS
Definition: dict0boot.h:222
@ DICT_NUM_COLS__SYS_FIELDS
Definition: dict0boot.h:224
@ DICT_COL__SYS_FIELDS__COL_NAME
Definition: dict0boot.h:223
dict_col_sys_tablespaces_enum
Definition: dict0boot.h:278
@ DICT_COL__SYS_TABLESPACES__FLAGS
Definition: dict0boot.h:281
@ DICT_COL__SYS_TABLESPACES__SPACE
Definition: dict0boot.h:279
@ DICT_NUM_COLS__SYS_TABLESPACES
Definition: dict0boot.h:282
@ DICT_COL__SYS_TABLESPACES__NAME
Definition: dict0boot.h:280
dict_col_sys_columns_enum
Definition: dict0boot.h:170
@ DICT_NUM_COLS__SYS_COLUMNS
Definition: dict0boot.h:178
@ DICT_COL__SYS_COLUMNS__PRTYPE
Definition: dict0boot.h:175
@ DICT_COL__SYS_COLUMNS__PREC
Definition: dict0boot.h:177
@ DICT_COL__SYS_COLUMNS__TABLE_ID
Definition: dict0boot.h:171
@ DICT_COL__SYS_COLUMNS__MTYPE
Definition: dict0boot.h:174
@ DICT_COL__SYS_COLUMNS__LEN
Definition: dict0boot.h:176
@ DICT_COL__SYS_COLUMNS__NAME
Definition: dict0boot.h:173
@ DICT_COL__SYS_COLUMNS__POS
Definition: dict0boot.h:172
constexpr uint32_t DICT_HDR
Definition: dict0boot.h:107
constexpr uint32_t DICT_FLD_LEN_FLAGS
Definition: dict0boot.h:328
dberr_t dict_boot(void)
Initializes the data dictionary memory structures when the database is started.
Definition: dict0boot.cc:204
dict_fld_sys_virtual_enum
Definition: dict0boot.h:316
@ DICT_FLD__SYS_VIRTUAL__POS
Definition: dict0boot.h:318
@ DICT_FLD__SYS_VIRTUAL__DB_ROLL_PTR
Definition: dict0boot.h:321
@ DICT_FLD__SYS_VIRTUAL__BASE_POS
Definition: dict0boot.h:319
@ DICT_FLD__SYS_VIRTUAL__DB_TRX_ID
Definition: dict0boot.h:320
@ DICT_NUM_FIELDS__SYS_VIRTUAL
Definition: dict0boot.h:322
@ DICT_FLD__SYS_VIRTUAL__TABLE_ID
Definition: dict0boot.h:317
constexpr uint32_t DICT_TABLE_IDS_ID
Definition: dict0boot.h:99
dict_col_sys_foreign_cols_enum
Definition: dict0boot.h:260
@ DICT_COL__SYS_FOREIGN_COLS__ID
Definition: dict0boot.h:261
@ DICT_NUM_COLS__SYS_FOREIGN_COLS
Definition: dict0boot.h:265
@ DICT_COL__SYS_FOREIGN_COLS__FOR_COL_NAME
Definition: dict0boot.h:263
@ DICT_COL__SYS_FOREIGN_COLS__POS
Definition: dict0boot.h:262
@ DICT_COL__SYS_FOREIGN_COLS__REF_COL_NAME
Definition: dict0boot.h:264
constexpr uint32_t DICT_HDR_TABLE_IDS
Root of SYS_TABLE_IDS sec index.
Definition: dict0boot.h:124
dict_col_sys_indexes_enum
Definition: dict0boot.h:194
@ DICT_COL__SYS_INDEXES__ID
Definition: dict0boot.h:196
@ DICT_COL__SYS_INDEXES__TYPE
Definition: dict0boot.h:199
@ DICT_COL__SYS_INDEXES__PAGE_NO
Definition: dict0boot.h:201
@ DICT_NUM_COLS__SYS_INDEXES
Definition: dict0boot.h:203
@ DICT_COL__SYS_INDEXES__N_FIELDS
Definition: dict0boot.h:198
@ DICT_COL__SYS_INDEXES__NAME
Definition: dict0boot.h:197
@ DICT_COL__SYS_INDEXES__MERGE_THRESHOLD
Definition: dict0boot.h:202
@ DICT_COL__SYS_INDEXES__SPACE
Definition: dict0boot.h:200
@ DICT_COL__SYS_INDEXES__TABLE_ID
Definition: dict0boot.h:195
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:126
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:96
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:268
@ DICT_FLD__SYS_FOREIGN_COLS__POS
Definition: dict0boot.h:270
@ DICT_FLD__SYS_FOREIGN_COLS__REF_COL_NAME
Definition: dict0boot.h:274
@ DICT_FLD__SYS_FOREIGN_COLS__DB_ROLL_PTR
Definition: dict0boot.h:272
@ DICT_FLD__SYS_FOREIGN_COLS__DB_TRX_ID
Definition: dict0boot.h:271
@ DICT_FLD__SYS_FOREIGN_COLS__ID
Definition: dict0boot.h:269
@ DICT_FLD__SYS_FOREIGN_COLS__FOR_COL_NAME
Definition: dict0boot.h:273
@ DICT_NUM_FIELDS__SYS_FOREIGN_COLS
Definition: dict0boot.h:275
byte dict_hdr_t
Definition: dict0boot.h:45
dberr_t dict_create(void)
Creates and initializes the data dictionary at the server bootstrap.
Definition: dict0boot.cc:440
constexpr uint32_t DICT_HDR_INDEX_ID
The latest assigned index id.
Definition: dict0boot.h:116
constexpr uint32_t DICT_HDR_FIRST_ID
the ids for tables etc.
Definition: dict0boot.h:104
dict_fld_sys_fields_enum
Definition: dict0boot.h:227
@ DICT_FLD__SYS_FIELDS__POS
Definition: dict0boot.h:229
@ DICT_NUM_FIELDS__SYS_FIELDS
Definition: dict0boot.h:233
@ DICT_FLD__SYS_FIELDS__INDEX_ID
Definition: dict0boot.h:228
@ DICT_FLD__SYS_FIELDS__DB_ROLL_PTR
Definition: dict0boot.h:231
@ DICT_FLD__SYS_FIELDS__DB_TRX_ID
Definition: dict0boot.h:230
@ DICT_FLD__SYS_FIELDS__COL_NAME
Definition: dict0boot.h:232
constexpr uint32_t DICT_HDR_TABLE_ID
The latest assigned table id.
Definition: dict0boot.h:114
dict_fld_sys_table_ids_enum
Definition: dict0boot.h:164
@ DICT_FLD__SYS_TABLE_IDS__ID
Definition: dict0boot.h:165
@ DICT_FLD__SYS_TABLE_IDS__NAME
Definition: dict0boot.h:166
@ DICT_NUM_FIELDS__SYS_TABLE_IDS
Definition: dict0boot.h:167
constexpr uint32_t DICT_FLD_LEN_SPACE
Definition: dict0boot.h:327
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_foreign_for_name_enum
Definition: dict0boot.h:254
@ DICT_FLD__SYS_FOREIGN_FOR_NAME__ID
Definition: dict0boot.h:256
@ DICT_FLD__SYS_FOREIGN_FOR_NAME__NAME
Definition: dict0boot.h:255
@ DICT_NUM_FIELDS__SYS_FOREIGN_FOR_NAME
Definition: dict0boot.h:257
constexpr uint32_t DICT_HDR_INDEXES
Root of SYS_INDEXES clust index.
Definition: dict0boot.h:128
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:69
dict_col_sys_tables_enum
Definition: dict0boot.h:138
@ DICT_COL__SYS_TABLES__SPACE
Definition: dict0boot.h:146
@ DICT_COL__SYS_TABLES__CLUSTER_ID
Definition: dict0boot.h:145
@ DICT_COL__SYS_TABLES__MIX_LEN
Definition: dict0boot.h:144
@ DICT_NUM_COLS__SYS_TABLES
Definition: dict0boot.h:147
@ DICT_COL__SYS_TABLES__MIX_ID
Definition: dict0boot.h:143
@ DICT_COL__SYS_TABLES__ID
Definition: dict0boot.h:140
@ DICT_COL__SYS_TABLES__NAME
Definition: dict0boot.h:139
@ DICT_COL__SYS_TABLES__N_COLS
Definition: dict0boot.h:141
@ DICT_COL__SYS_TABLES__TYPE
Definition: dict0boot.h:142
constexpr uint32_t DICT_COLUMNS_ID
Definition: dict0boot.h:95
constexpr uint32_t DICT_HDR_FSEG_HEADER
Definition: dict0boot.h:134
constexpr uint32_t DICT_HDR_MAX_SPACE_ID
The latest assigned space id,or 0.
Definition: dict0boot.h:118
constexpr uint32_t DICT_HDR_FIELDS
Root of SYS_FIELDS clust index.
Definition: dict0boot.h:130
constexpr uint32_t DICT_HDR_ROW_ID_WRITE_MARGIN
Definition: dict0boot.h:333
dict_fld_sys_datafiles_enum
Definition: dict0boot.h:300
@ DICT_NUM_FIELDS__SYS_DATAFILES
Definition: dict0boot.h:305
@ DICT_FLD__SYS_DATAFILES__SPACE
Definition: dict0boot.h:301
@ DICT_FLD__SYS_DATAFILES__PATH
Definition: dict0boot.h:304
@ DICT_FLD__SYS_DATAFILES__DB_ROLL_PTR
Definition: dict0boot.h:303
@ DICT_FLD__SYS_DATAFILES__DB_TRX_ID
Definition: dict0boot.h:302
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:150
dict_fld_sys_tablespaces_enum
Definition: dict0boot.h:285
@ DICT_FLD__SYS_TABLESPACES__FLAGS
Definition: dict0boot.h:290
@ DICT_FLD__SYS_TABLESPACES__DB_TRX_ID
Definition: dict0boot.h:287
@ DICT_FLD__SYS_TABLESPACES__NAME
Definition: dict0boot.h:289
@ DICT_NUM_FIELDS__SYS_TABLESPACES
Definition: dict0boot.h:291
@ DICT_FLD__SYS_TABLESPACES__DB_ROLL_PTR
Definition: dict0boot.h:288
@ DICT_FLD__SYS_TABLESPACES__SPACE
Definition: dict0boot.h:286
constexpr uint32_t DICT_HDR_ROW_ID
The latest assigned row id.
Definition: dict0boot.h:112
constexpr uint32_t DICT_HDR_MIX_ID_LOW
Obsolete,always DICT_HDR_FIRST_ID.
Definition: dict0boot.h:120
dict_col_sys_virtual_enum
Definition: dict0boot.h:309
@ DICT_COL__SYS_VIRTUAL__POS
Definition: dict0boot.h:311
@ DICT_NUM_COLS__SYS_VIRTUAL
Definition: dict0boot.h:313
@ DICT_COL__SYS_VIRTUAL__TABLE_ID
Definition: dict0boot.h:310
@ DICT_COL__SYS_VIRTUAL__BASE_POS
Definition: dict0boot.h:312
dict_fld_sys_indexes_enum
Definition: dict0boot.h:206
@ DICT_FLD__SYS_INDEXES__PAGE_NO
Definition: dict0boot.h:215
@ DICT_FLD__SYS_INDEXES__MERGE_THRESHOLD
Definition: dict0boot.h:216
@ DICT_FLD__SYS_INDEXES__NAME
Definition: dict0boot.h:211
@ DICT_NUM_FIELDS__SYS_INDEXES
Definition: dict0boot.h:217
@ DICT_FLD__SYS_INDEXES__ID
Definition: dict0boot.h:208
@ DICT_FLD__SYS_INDEXES__DB_TRX_ID
Definition: dict0boot.h:209
@ DICT_FLD__SYS_INDEXES__N_FIELDS
Definition: dict0boot.h:212
@ DICT_FLD__SYS_INDEXES__TABLE_ID
Definition: dict0boot.h:207
@ DICT_FLD__SYS_INDEXES__SPACE
Definition: dict0boot.h:214
@ DICT_FLD__SYS_INDEXES__DB_ROLL_PTR
Definition: dict0boot.h:210
@ DICT_FLD__SYS_INDEXES__TYPE
Definition: dict0boot.h:213
constexpr uint32_t DICT_TABLES_ID
The ids for the basic system tables and their indexes.
Definition: dict0boot.h:94
dict_fld_sys_foreign_enum
Definition: dict0boot.h:244
@ DICT_FLD__SYS_FOREIGN__FOR_NAME
Definition: dict0boot.h:248
@ DICT_FLD__SYS_FOREIGN__N_COLS
Definition: dict0boot.h:250
@ DICT_FLD__SYS_FOREIGN__DB_ROLL_PTR
Definition: dict0boot.h:247
@ DICT_NUM_FIELDS__SYS_FOREIGN
Definition: dict0boot.h:251
@ DICT_FLD__SYS_FOREIGN__REF_NAME
Definition: dict0boot.h:249
@ DICT_FLD__SYS_FOREIGN__DB_TRX_ID
Definition: dict0boot.h:246
@ DICT_FLD__SYS_FOREIGN__ID
Definition: dict0boot.h:245
dict_col_sys_datafiles_enum
Definition: dict0boot.h:294
@ DICT_NUM_COLS__SYS_DATAFILES
Definition: dict0boot.h:297
@ DICT_COL__SYS_DATAFILES__PATH
Definition: dict0boot.h:296
@ DICT_COL__SYS_DATAFILES__SPACE
Definition: dict0boot.h:295
dict_fld_sys_columns_enum
Definition: dict0boot.h:181
@ DICT_FLD__SYS_COLUMNS__PREC
Definition: dict0boot.h:190
@ DICT_FLD__SYS_COLUMNS__NAME
Definition: dict0boot.h:186
@ DICT_NUM_FIELDS__SYS_COLUMNS
Definition: dict0boot.h:191
@ DICT_FLD__SYS_COLUMNS__DB_TRX_ID
Definition: dict0boot.h:184
@ DICT_FLD__SYS_COLUMNS__LEN
Definition: dict0boot.h:189
@ DICT_FLD__SYS_COLUMNS__MTYPE
Definition: dict0boot.h:187
@ DICT_FLD__SYS_COLUMNS__TABLE_ID
Definition: dict0boot.h:182
@ DICT_FLD__SYS_COLUMNS__DB_ROLL_PTR
Definition: dict0boot.h:185
@ DICT_FLD__SYS_COLUMNS__PRTYPE
Definition: dict0boot.h:188
@ DICT_FLD__SYS_COLUMNS__POS
Definition: dict0boot.h:183
Data dictionary creation and booting.
ib_id_t space_index_t
Index identifier (unique within a tablespace).
Definition: dict0types.h:219
ib_id_t table_id_t
Table or partition identifier (unique within an InnoDB instance).
Definition: dict0types.h:217
constexpr uint32_t FSEG_PAGE_DATA
On a page of any file segment, data may be put starting from this offset.
Definition: fsp0types.h:78
Mini-transaction logging routines.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
Data structure for a database table.
Definition: dict0mem.h:1908
Mini-transaction handle and buffer.
Definition: mtr0mtr.h:176
ib_id_t row_id_t
Row identifier (DB_ROW_ID, DATA_ROW_ID)
Definition: trx0types.h:131
Version control for database, common definitions, and include files.
Utilities for byte operations.