29 #include "dict0boot.ic"
54 block =
buf_page_get(DICT_HDR_SPACE, 0, DICT_HDR_PAGE_NO,
56 header = DICT_HDR + buf_block_get_frame(block);
58 buf_block_dbg_add_level(block, SYNC_DICT_HEADER);
118 dict_hdr_t* dict_hdr;
146 dict_hdr_t* dict_header;
154 DICT_HDR + DICT_HDR_FSEG_HEADER, mtr);
163 DICT_HDR_FIRST_ID, mtr);
166 DICT_HDR_FIRST_ID, mtr);
169 DICT_HDR_FIRST_ID, mtr);
183 DICT_HDR_SPACE, 0, DICT_TABLES_ID,
205 DICT_HDR_SPACE, 0, DICT_COLUMNS_ID,
216 DICT_HDR_SPACE, 0, DICT_INDEXES_ID,
227 DICT_HDR_SPACE, 0, DICT_FIELDS_ID,
252 dict_hdr_t* dict_hdr;
260 ut_ad(DICT_NUM_COLS__SYS_TABLES == 8);
261 ut_ad(DICT_NUM_FIELDS__SYS_TABLES == 10);
262 ut_ad(DICT_NUM_FIELDS__SYS_TABLE_IDS == 2);
263 ut_ad(DICT_NUM_COLS__SYS_COLUMNS == 7);
264 ut_ad(DICT_NUM_FIELDS__SYS_COLUMNS == 9);
265 ut_ad(DICT_NUM_COLS__SYS_INDEXES == 7);
266 ut_ad(DICT_NUM_FIELDS__SYS_INDEXES == 9);
267 ut_ad(DICT_NUM_COLS__SYS_FIELDS == 3);
268 ut_ad(DICT_NUM_FIELDS__SYS_FIELDS == 5);
269 ut_ad(DICT_NUM_COLS__SYS_FOREIGN == 4);
270 ut_ad(DICT_NUM_FIELDS__SYS_FOREIGN == 6);
271 ut_ad(DICT_NUM_FIELDS__SYS_FOREIGN_FOR_NAME == 2);
272 ut_ad(DICT_NUM_COLS__SYS_FOREIGN_COLS == 4);
273 ut_ad(DICT_NUM_FIELDS__SYS_FOREIGN_COLS == 6);
299 DICT_HDR_ROW_ID_WRITE_MARGIN);
321 table->
id = DICT_TABLES_ID;
333 index->
id = DICT_TABLES_ID;
340 ut_a(error == DB_SUCCESS);
347 index->
id = DICT_TABLE_IDS_ID;
350 + DICT_HDR_TABLE_IDS,
353 ut_a(error == DB_SUCCESS);
366 table->
id = DICT_COLUMNS_ID;
379 index->
id = DICT_COLUMNS_ID;
385 ut_a(error == DB_SUCCESS);
398 table->
id = DICT_INDEXES_ID;
411 index->
id = DICT_INDEXES_ID;
417 ut_a(error == DB_SUCCESS);
426 table->
id = DICT_FIELDS_ID;
439 index->
id = DICT_FIELDS_ID;
445 ut_a(error == DB_SUCCESS);
460 "Change buffer must be empty when --innodb-read-only "
483 dict_insert_initial_data(
void)
501 dict_hdr_create(&mtr);
507 if (err == DB_SUCCESS) {
508 dict_insert_initial_data();