Skip to content

Commit 3466b47

Browse files
committed
Merge 10.2 into 10.3
2 parents 0a20e5a + f0aa073 commit 3466b47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+834
-800
lines changed

storage/innobase/btr/btr0btr.cc

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ btr_node_ptr_set_child_page_no(
775775
rec_t* rec,/*!< in: node pointer record */
776776
page_zip_des_t* page_zip,/*!< in/out: compressed page whose uncompressed
777777
part will be updated, or NULL */
778-
const ulint* offsets,/*!< in: array returned by rec_get_offsets() */
778+
const offset_t* offsets,/*!< in: array returned by rec_get_offsets() */
779779
ulint page_no,/*!< in: child node address */
780780
mtr_t* mtr)/*!< in: mtr */
781781
{
@@ -810,7 +810,7 @@ btr_node_ptr_get_child(
810810
/*===================*/
811811
const rec_t* node_ptr,/*!< in: node pointer */
812812
dict_index_t* index,/*!< in: index */
813-
const ulint* offsets,/*!< in: array returned by rec_get_offsets() */
813+
const offset_t* offsets,/*!< in: array returned by rec_get_offsets() */
814814
mtr_t* mtr)/*!< in: mtr */
815815
{
816816
ut_ad(rec_offs_validate(node_ptr, index, offsets));
@@ -829,10 +829,10 @@ Returns the upper level node pointer to a page. It is assumed that mtr holds
829829
an sx-latch on the tree.
830830
@return rec_get_offsets() of the node pointer record */
831831
static
832-
ulint*
832+
offset_t*
833833
btr_page_get_father_node_ptr_func(
834834
/*==============================*/
835-
ulint*offsets,/*!< in: work area for the return value */
835+
offset_t*offsets,/*!< in: work area for the return value */
836836
mem_heap_t* heap,/*!< in: memory heap to use */
837837
btr_cur_t* cursor,/*!< in: cursor pointing to user record,
838838
out: cursor on node pointer record,
@@ -936,10 +936,10 @@ Returns the upper level node pointer to a page. It is assumed that mtr holds
936936
an x-latch on the tree.
937937
@return rec_get_offsets() of the node pointer record */
938938
static
939-
ulint*
939+
offset_t*
940940
btr_page_get_father_block(
941941
/*======================*/
942-
ulint*offsets,/*!< in: work area for the return value */
942+
offset_t*offsets,/*!< in: work area for the return value */
943943
mem_heap_t* heap,/*!< in: memory heap to use */
944944
dict_index_t* index,/*!< in: b-tree index */
945945
buf_block_t* block,/*!< in: child page in the index */
@@ -1823,7 +1823,7 @@ btr_root_raise_and_insert(
18231823
on the root page; when the function returns,
18241824
the cursor is positioned on the predecessor
18251825
of the inserted record */
1826-
ulint**offsets,/*!< out: offsets on inserted record */
1826+
offset_t**offsets,/*!< out: offsets on inserted record */
18271827
mem_heap_t** heap,/*!< in/out: pointer to memory heap, or NULL */
18281828
const dtuple_t* tuple,/*!< in: tuple to insert */
18291829
ulint n_ext,/*!< in: number of externally stored columns */
@@ -2156,7 +2156,7 @@ btr_page_get_split_rec(
21562156
rec_t* next_rec;
21572157
ulint n;
21582158
mem_heap_t* heap;
2159-
ulint*offsets;
2159+
offset_t*offsets;
21602160

21612161
page = btr_cur_get_page(cursor);
21622162

@@ -2262,7 +2262,7 @@ btr_page_insert_fits(
22622262
const rec_t* split_rec,/*!< in: suggestion for first record
22632263
on upper half-page, or NULL if
22642264
tuple to be inserted should be first */
2265-
ulint**offsets,/*!< in: rec_get_offsets(
2265+
offset_t**offsets,/*!< in: rec_get_offsets(
22662266
split_rec, cursor->index); out: garbage */
22672267
const dtuple_t* tuple,/*!< in: tuple to insert */
22682268
ulint n_ext,/*!< in: number of externally stored columns */
@@ -2362,8 +2362,8 @@ btr_insert_on_non_leaf_level_func(
23622362
dberr_terr;
23632363
rec_t* rec;
23642364
mem_heap_t* heap = NULL;
2365-
ulint offsets_[REC_OFFS_NORMAL_SIZE];
2366-
ulint* offsets = offsets_;
2365+
offset_toffsets_[REC_OFFS_NORMAL_SIZE];
2366+
offset_t*offsets = offsets_;
23672367
rec_offs_init(offsets_);
23682368
rtr_info_trtr_info;
23692369

@@ -2471,7 +2471,7 @@ btr_attach_half_pages(
24712471
if (direction == FSP_DOWN) {
24722472

24732473
btr_cur_tcursor;
2474-
ulint*offsets;
2474+
offset_t*offsets;
24752475

24762476
lower_page = buf_block_get_frame(new_block);
24772477
lower_page_no = new_block->page.id.page_no();
@@ -2593,7 +2593,7 @@ btr_page_tuple_smaller(
25932593
/*===================*/
25942594
btr_cur_t* cursor,/*!< in: b-tree cursor */
25952595
const dtuple_t* tuple,/*!< in: tuple to consider */
2596-
ulint**offsets,/*!< in/out: temporary storage */
2596+
offset_t**offsets,/*!< in/out: temporary storage */
25972597
ulint n_uniq,/*!< in: number of unique fields
25982598
in the index page records */
25992599
mem_heap_t** heap)/*!< in/out: heap for offsets */
@@ -2633,7 +2633,7 @@ rec_t*
26332633
btr_insert_into_right_sibling(
26342634
ulint flags,
26352635
btr_cur_t* cursor,
2636-
ulint**offsets,
2636+
offset_t**offsets,
26372637
mem_heap_t* heap,
26382638
const dtuple_t* tuple,
26392639
ulint n_ext,
@@ -2769,7 +2769,7 @@ btr_page_split_and_insert(
27692769
btr_cur_t* cursor,/*!< in: cursor at which to insert; when the
27702770
function returns, the cursor is positioned
27712771
on the predecessor of the inserted record */
2772-
ulint**offsets,/*!< out: offsets on inserted record */
2772+
offset_t**offsets,/*!< out: offsets on inserted record */
27732773
mem_heap_t** heap,/*!< in/out: pointer to memory heap, or NULL */
27742774
const dtuple_t* tuple,/*!< in: tuple to insert */
27752775
ulint n_ext,/*!< in: number of externally stored columns */
@@ -3321,7 +3321,7 @@ btr_lift_page_up(
33213321

33223322
{
33233323
btr_cur_tcursor;
3324-
ulint*offsets = NULL;
3324+
offset_t*offsets = NULL;
33253325
mem_heap_t* heap = mem_heap_create(
33263326
sizeof(*offsets)
33273327
* (REC_OFFS_HEADER_SIZE + 1 + 1
@@ -3518,7 +3518,7 @@ btr_compress(
35183518
page_t* page;
35193519
btr_cur_tfather_cursor;
35203520
mem_heap_t* heap;
3521-
ulint*offsets;
3521+
offset_t*offsets;
35223522
ulint nth_rec = 0; /* remove bogus warning */
35233523
boolmbr_changed = false;
35243524
#ifdef UNIV_DEBUG
@@ -3661,7 +3661,7 @@ btr_compress(
36613661
if (is_left) {
36623662
btr_cur_tcursor2;
36633663
rtr_mbr_tnew_mbr;
3664-
ulint*offsets2 = NULL;
3664+
offset_t*offsets2 = NULL;
36653665

36663666
/* For rtree, we need to update father's mbr. */
36673667
if (dict_index_is_spatial(index)) {
@@ -3857,7 +3857,7 @@ btr_compress(
38573857

38583858
/* For rtree, we need to update father's mbr. */
38593859
if (dict_index_is_spatial(index)) {
3860-
ulint*offsets2;
3860+
offset_t* offsets2;
38613861
ulint rec_info;
38623862

38633863
offsets2 = rec_get_offsets(
@@ -4304,7 +4304,7 @@ btr_print_recursive(
43044304
ulint width,/*!< in: print this many entries from start
43054305
and end */
43064306
mem_heap_t** heap,/*!< in/out: heap for rec_get_offsets() */
4307-
ulint**offsets,/*!< in/out: buffer for rec_get_offsets() */
4307+
offset_t**offsets,/*!< in/out: buffer for rec_get_offsets() */
43084308
mtr_t* mtr)/*!< in: mtr */
43094309
{
43104310
const page_t* page = buf_block_get_frame(block);
@@ -4368,8 +4368,8 @@ btr_print_index(
43684368
mtr_tmtr;
43694369
buf_block_t* root;
43704370
mem_heap_t* heap = NULL;
4371-
ulintoffsets_[REC_OFFS_NORMAL_SIZE];
4372-
ulint*offsets = offsets_;
4371+
offset_toffsets_[REC_OFFS_NORMAL_SIZE];
4372+
offset_t*offsets = offsets_;
43734373
rec_offs_init(offsets_);
43744374

43754375
fputs("--------------------------\n"
@@ -4403,7 +4403,7 @@ btr_check_node_ptr(
44034403
{
44044404
mem_heap_t* heap;
44054405
dtuple_t* tuple;
4406-
ulint*offsets;
4406+
offset_t*offsets;
44074407
btr_cur_tcursor;
44084408
page_t* page = buf_block_get_frame(block);
44094409

@@ -4483,8 +4483,8 @@ btr_index_rec_validate(
44834483
ulint len;
44844484
const page_t* page;
44854485
mem_heap_t* heap = NULL;
4486-
ulintoffsets_[REC_OFFS_NORMAL_SIZE];
4487-
ulint*offsets = offsets_;
4486+
offset_toffsets_[REC_OFFS_NORMAL_SIZE];
4487+
offset_t*offsets = offsets_;
44884488
rec_offs_init(offsets_);
44894489

44904490
page = page_align(rec);
@@ -4716,8 +4716,8 @@ btr_validate_level(
47164716
boolret = true;
47174717
mtr_tmtr;
47184718
mem_heap_t* heap = mem_heap_create(256);
4719-
ulint*offsets = NULL;
4720-
ulint*offsets2= NULL;
4719+
offset_t*offsets = NULL;
4720+
offset_t*offsets2= NULL;
47214721
#ifdef UNIV_ZIP_DEBUG
47224722
page_zip_des_t* page_zip;
47234723
#endif /* UNIV_ZIP_DEBUG */

storage/innobase/btr/btr0bulk.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ PageBulk::init()
175175
void
176176
PageBulk::insert(
177177
const rec_t* rec,
178-
ulint*offsets)
178+
offset_t*offsets)
179179
{
180180
ulint rec_size;
181181

@@ -188,7 +188,7 @@ PageBulk::insert(
188188
/* Check whether records are in order. */
189189
if (!page_rec_is_infimum(m_cur_rec)) {
190190
rec_t* old_rec = m_cur_rec;
191-
ulint*old_offsets = rec_get_offsets(
191+
offset_t* old_offsets = rec_get_offsets(
192192
old_rec, m_index, NULL, is_leaf,
193193
ULINT_UNDEFINED, &m_heap);
194194

@@ -401,7 +401,7 @@ rec_t*
401401
PageBulk::getSplitRec()
402402
{
403403
rec_t* rec;
404-
ulint*offsets;
404+
offset_t*offsets;
405405
ulint total_used_size;
406406
ulint total_recs_size;
407407
ulint n_recs;
@@ -447,7 +447,7 @@ PageBulk::copyIn(
447447
{
448448

449449
rec_t* rec = split_rec;
450-
ulint*offsets = NULL;
450+
offset_t*offsets = NULL;
451451

452452
ut_ad(m_rec_no == 0);
453453
ut_ad(page_rec_is_user_rec(rec));
@@ -493,7 +493,7 @@ PageBulk::copyOut(
493493
ut_ad(n > 0);
494494

495495
/* Set last record's next in page */
496-
ulint*offsets = NULL;
496+
offset_t*offsets = NULL;
497497
rec = page_rec_get_prev(split_rec);
498498
offsets = rec_get_offsets(rec, m_index, offsets,
499499
page_rec_is_leaf(split_rec),
@@ -602,7 +602,7 @@ the blob data is logged first, then the record is logged in bulk mode.
602602
dberr_t
603603
PageBulk::storeExt(
604604
const big_rec_t* big_rec,
605-
ulint*offsets)
605+
offset_t*offsets)
606606
{
607607
/* Note: not all fileds are initialized in btr_pcur. */
608608
btr_pcur_tbtr_pcur;
@@ -862,7 +862,7 @@ BtrBulk::insert(
862862
ulint rec_size = rec_get_converted_size(m_index, tuple, n_ext);
863863
big_rec_t* big_rec = NULL;
864864
rec_t* rec = NULL;
865-
ulint*offsets = NULL;
865+
offset_t*offsets = NULL;
866866

867867
if (page_bulk->needExt(tuple, rec_size)) {
868868
/* The record is so big that we have to store some fields

0 commit comments

Comments
 (0)