@@ -225,7 +225,7 @@ btr_root_block_get(
225
225
}
226
226
227
227
buf_block_t * block = btr_block_get (
228
- page_id_t (index->table ->space -> id , index->page ),
228
+ page_id_t (index->table ->space_id , index->page ),
229
229
page_size_t (index->table ->space ->flags ), mode,
230
230
index, mtr);
231
231
@@ -250,9 +250,9 @@ btr_root_block_get(
250
250
const page_t * root = buf_block_get_frame (block);
251
251
252
252
ut_a (btr_root_fseg_validate (FIL_PAGE_DATA + PAGE_BTR_SEG_LEAF
253
- + root, index->table ->space -> id ));
253
+ + root, index->table ->space_id ));
254
254
ut_a (btr_root_fseg_validate (FIL_PAGE_DATA + PAGE_BTR_SEG_TOP
255
- + root, index->table ->space -> id ));
255
+ + root, index->table ->space_id ));
256
256
}
257
257
#endif /* UNIV_BTR_DEBUG */
258
258
@@ -363,7 +363,7 @@ btr_root_adjust_on_import(
363
363
buf_block_t * block;
364
364
page_zip_des_t * page_zip;
365
365
dict_table_t * table = index->table ;
366
- const page_id_t page_id (table->space -> id , index->page );
366
+ const page_id_t page_id (table->space_id , index->page );
367
367
const page_size_t page_size (table->space ->flags );
368
368
369
369
DBUG_EXECUTE_IF (" ib_import_trigger_corruption_3" ,
@@ -405,10 +405,10 @@ btr_root_adjust_on_import(
405
405
if (err == DB_SUCCESS
406
406
&& (!btr_root_fseg_adjust_on_import (
407
407
FIL_PAGE_DATA + PAGE_BTR_SEG_LEAF
408
- + page, page_zip, table->space -> id , &mtr)
408
+ + page, page_zip, table->space_id , &mtr)
409
409
|| !btr_root_fseg_adjust_on_import (
410
410
FIL_PAGE_DATA + PAGE_BTR_SEG_TOP
411
- + page, page_zip, table->space -> id , &mtr))) {
411
+ + page, page_zip, table->space_id , &mtr))) {
412
412
413
413
err = DB_CORRUPTION;
414
414
}
@@ -474,7 +474,7 @@ btr_page_alloc_for_ibuf(
474
474
ut_a (node_addr.page != FIL_NULL);
475
475
476
476
new_block = buf_page_get (
477
- page_id_t (index->table ->space -> id , node_addr.page ),
477
+ page_id_t (index->table ->space_id , node_addr.page ),
478
478
page_size_t (index->table ->space ->flags ),
479
479
RW_X_LATCH, mtr);
480
480
@@ -923,11 +923,11 @@ btr_node_ptr_get_child(
923
923
mtr_t * mtr) /* !< in: mtr */
924
924
{
925
925
ut_ad (rec_offs_validate (node_ptr, index, offsets));
926
- ut_ad (index->table ->space -> id
926
+ ut_ad (index->table ->space_id
927
927
== page_get_space_id (page_align (node_ptr)));
928
928
929
929
return btr_block_get (
930
- page_id_t (index->table ->space -> id ,
930
+ page_id_t (index->table ->space_id ,
931
931
btr_node_ptr_get_child_page_no (node_ptr, offsets)),
932
932
page_size_t (index->table ->space ->flags ),
933
933
RW_SX_LATCH, index, mtr);
@@ -1472,7 +1472,7 @@ btr_read_autoinc(dict_index_t* index)
1472
1472
mtr.start ();
1473
1473
ib_uint64_t autoinc;
1474
1474
if (buf_block_t * block = buf_page_get (
1475
- page_id_t (index->table ->space -> id , index->page ),
1475
+ page_id_t (index->table ->space_id , index->page ),
1476
1476
page_size_t (index->table ->space ->flags ),
1477
1477
RW_S_LATCH, &mtr)) {
1478
1478
autoinc = page_get_autoinc (block->frame );
@@ -1504,7 +1504,7 @@ btr_read_autoinc_with_fallback(const dict_table_t* table, unsigned col_no)
1504
1504
mtr_t mtr;
1505
1505
mtr.start ();
1506
1506
buf_block_t * block = buf_page_get (
1507
- page_id_t (index->table ->space -> id , index->page ),
1507
+ page_id_t (index->table ->space_id , index->page ),
1508
1508
page_size_t (index->table ->space ->flags ),
1509
1509
RW_S_LATCH, &mtr);
1510
1510
@@ -1979,7 +1979,7 @@ btr_root_raise_and_insert(
1979
1979
#endif /* UNIV_ZIP_DEBUG */
1980
1980
#ifdef UNIV_BTR_DEBUG
1981
1981
if (!dict_index_is_ibuf (index)) {
1982
- ulint space = index->table ->space -> id ;
1982
+ ulint space = index->table ->space_id ;
1983
1983
1984
1984
ut_a (btr_root_fseg_validate (FIL_PAGE_DATA + PAGE_BTR_SEG_LEAF
1985
1985
+ root, space));
@@ -3906,7 +3906,7 @@ btr_compress(
3906
3906
btr_search_drop_page_hash_index (block);
3907
3907
3908
3908
/* Remove the page from the level list */
3909
- btr_level_list_remove (index->table ->space -> id ,
3909
+ btr_level_list_remove (index->table ->space_id ,
3910
3910
page_size, page, index, mtr);
3911
3911
3912
3912
if (dict_index_is_spatial (index)) {
@@ -4036,7 +4036,7 @@ btr_compress(
4036
4036
#endif /* UNIV_BTR_DEBUG */
4037
4037
4038
4038
/* Remove the page from the level list */
4039
- btr_level_list_remove (index->table ->space -> id ,
4039
+ btr_level_list_remove (index->table ->space_id ,
4040
4040
page_size, page, index, mtr);
4041
4041
4042
4042
ut_ad (btr_node_ptr_get_child_page_no (
@@ -4276,7 +4276,7 @@ btr_discard_only_page_on_level(
4276
4276
#ifdef UNIV_BTR_DEBUG
4277
4277
if (!dict_index_is_ibuf (index)) {
4278
4278
const page_t * root = buf_block_get_frame (block);
4279
- const ulint space = index->table ->space -> id ;
4279
+ const ulint space = index->table ->space_id ;
4280
4280
ut_a (btr_root_fseg_validate (FIL_PAGE_DATA + PAGE_BTR_SEG_LEAF
4281
4281
+ root, space));
4282
4282
ut_a (btr_root_fseg_validate (FIL_PAGE_DATA + PAGE_BTR_SEG_TOP
@@ -4357,7 +4357,7 @@ btr_discard_page(
4357
4357
4358
4358
if (left_page_no != FIL_NULL) {
4359
4359
merge_block = btr_block_get (
4360
- page_id_t (index->table ->space -> id , left_page_no),
4360
+ page_id_t (index->table ->space_id , left_page_no),
4361
4361
page_size, RW_X_LATCH, index, mtr);
4362
4362
4363
4363
merge_page = buf_block_get_frame (merge_block);
@@ -4373,7 +4373,7 @@ btr_discard_page(
4373
4373
== btr_cur_get_rec (&parent_cursor)));
4374
4374
} else if (right_page_no != FIL_NULL) {
4375
4375
merge_block = btr_block_get (
4376
- page_id_t (index->table ->space -> id , right_page_no),
4376
+ page_id_t (index->table ->space_id , right_page_no),
4377
4377
page_size, RW_X_LATCH, index, mtr);
4378
4378
4379
4379
merge_page = buf_block_get_frame (merge_block);
@@ -4422,7 +4422,7 @@ btr_discard_page(
4422
4422
}
4423
4423
4424
4424
/* Remove the page from the level list */
4425
- btr_level_list_remove (index->table ->space -> id , page_size,
4425
+ btr_level_list_remove (index->table ->space_id , page_size,
4426
4426
page, index, mtr);
4427
4427
4428
4428
#ifdef UNIV_ZIP_DEBUG
@@ -4979,7 +4979,7 @@ btr_validate_level(
4979
4979
ret = false ;
4980
4980
}
4981
4981
4982
- ut_a (index->table ->space -> id == block->page .id .space ());
4982
+ ut_a (index->table ->space_id == block->page .id .space ());
4983
4983
ut_a (block->page .id .space () == page_get_space_id (page));
4984
4984
#ifdef UNIV_ZIP_DEBUG
4985
4985
page_zip = buf_block_get_page_zip (block);
@@ -5016,7 +5016,7 @@ btr_validate_level(
5016
5016
5017
5017
savepoint2 = mtr_set_savepoint (&mtr);
5018
5018
block = btr_block_get (
5019
- page_id_t (index->table ->space -> id ,
5019
+ page_id_t (index->table ->space_id ,
5020
5020
left_page_no),
5021
5021
table_page_size,
5022
5022
RW_SX_LATCH, index, &mtr);
@@ -5045,7 +5045,7 @@ btr_validate_level(
5045
5045
ut_a (!page_zip || page_zip_validate (page_zip, page, index));
5046
5046
#endif /* UNIV_ZIP_DEBUG */
5047
5047
5048
- ut_a (block->page .id .space () == index->table ->space -> id );
5048
+ ut_a (block->page .id .space () == index->table ->space_id );
5049
5049
5050
5050
if (fseg_page_is_free (space, block->page .id .page_no ())) {
5051
5051
@@ -5088,7 +5088,7 @@ btr_validate_level(
5088
5088
savepoint = mtr_set_savepoint (&mtr);
5089
5089
5090
5090
right_block = btr_block_get (
5091
- page_id_t (index->table ->space -> id , right_page_no),
5091
+ page_id_t (index->table ->space_id , right_page_no),
5092
5092
table_page_size,
5093
5093
RW_SX_LATCH, index, &mtr);
5094
5094
@@ -5265,13 +5265,13 @@ btr_validate_level(
5265
5265
&mtr, savepoint, right_block);
5266
5266
5267
5267
btr_block_get (
5268
- page_id_t (index->table ->space -> id ,
5268
+ page_id_t (index->table ->space_id ,
5269
5269
parent_right_page_no),
5270
5270
table_page_size,
5271
5271
RW_SX_LATCH, index, &mtr);
5272
5272
5273
5273
right_block = btr_block_get (
5274
- page_id_t (index->table ->space -> id ,
5274
+ page_id_t (index->table ->space_id ,
5275
5275
right_page_no),
5276
5276
table_page_size,
5277
5277
RW_SX_LATCH, index, &mtr);
@@ -5349,22 +5349,22 @@ btr_validate_level(
5349
5349
if (parent_right_page_no != FIL_NULL) {
5350
5350
btr_block_get (
5351
5351
page_id_t (
5352
- index->table ->space -> id ,
5352
+ index->table ->space_id ,
5353
5353
parent_right_page_no),
5354
5354
table_page_size,
5355
5355
RW_SX_LATCH, index, &mtr);
5356
5356
}
5357
5357
} else if (parent_page_no != FIL_NULL) {
5358
5358
btr_block_get (
5359
- page_id_t (index->table ->space -> id ,
5359
+ page_id_t (index->table ->space_id ,
5360
5360
parent_page_no),
5361
5361
table_page_size,
5362
5362
RW_SX_LATCH, index, &mtr);
5363
5363
}
5364
5364
}
5365
5365
5366
5366
block = btr_block_get (
5367
- page_id_t (index->table ->space -> id , right_page_no),
5367
+ page_id_t (index->table ->space_id , right_page_no),
5368
5368
table_page_size,
5369
5369
RW_SX_LATCH, index, &mtr);
5370
5370
@@ -5510,7 +5510,7 @@ btr_can_merge_with_page(
5510
5510
index = btr_cur_get_index (cursor);
5511
5511
page = btr_cur_get_page (cursor);
5512
5512
5513
- const page_id_t page_id (index->table ->space -> id , page_no);
5513
+ const page_id_t page_id (index->table ->space_id , page_no);
5514
5514
const page_size_t page_size (index->table ->space ->flags );
5515
5515
5516
5516
mblock = btr_block_get (page_id, page_size, RW_X_LATCH, index, mtr);
0 commit comments