@@ -775,7 +775,7 @@ btr_node_ptr_set_child_page_no(
775775rec_t * rec,/* !< in: node pointer record */
776776page_zip_des_t * page_zip,/* !< in/out: compressed page whose uncompressed
777777part 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() */
779779ulint page_no,/* !< in: child node address */
780780mtr_t * mtr)/* !< in: mtr */
781781{
@@ -810,7 +810,7 @@ btr_node_ptr_get_child(
810810/* ===================*/
811811const rec_t * node_ptr,/* !< in: node pointer */
812812dict_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() */
814814mtr_t * mtr)/* !< in: mtr */
815815{
816816ut_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
829829an sx-latch on the tree.
830830@return rec_get_offsets() of the node pointer record */
831831static
832- ulint *
832+ offset_t *
833833btr_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 */
836836mem_heap_t * heap,/* !< in: memory heap to use */
837837btr_cur_t * cursor,/* !< in: cursor pointing to user record,
838838out: cursor on node pointer record,
@@ -936,10 +936,10 @@ Returns the upper level node pointer to a page. It is assumed that mtr holds
936936an x-latch on the tree.
937937@return rec_get_offsets() of the node pointer record */
938938static
939- ulint *
939+ offset_t *
940940btr_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 */
943943mem_heap_t * heap,/* !< in: memory heap to use */
944944dict_index_t * index,/* !< in: b-tree index */
945945buf_block_t * block,/* !< in: child page in the index */
@@ -1823,7 +1823,7 @@ btr_root_raise_and_insert(
18231823on the root page; when the function returns,
18241824the cursor is positioned on the predecessor
18251825of the inserted record */
1826- ulint** offsets,/* !< out: offsets on inserted record */
1826+ offset_t ** offsets,/* !< out: offsets on inserted record */
18271827mem_heap_t ** heap,/* !< in/out: pointer to memory heap, or NULL */
18281828const dtuple_t * tuple,/* !< in: tuple to insert */
18291829ulint n_ext,/* !< in: number of externally stored columns */
@@ -2156,7 +2156,7 @@ btr_page_get_split_rec(
21562156rec_t * next_rec;
21572157ulint n;
21582158mem_heap_t * heap;
2159- ulint* offsets;
2159+ offset_t * offsets;
21602160
21612161page = btr_cur_get_page (cursor);
21622162
@@ -2262,7 +2262,7 @@ btr_page_insert_fits(
22622262const rec_t * split_rec,/* !< in: suggestion for first record
22632263on upper half-page, or NULL if
22642264tuple to be inserted should be first */
2265- ulint** offsets,/* !< in: rec_get_offsets(
2265+ offset_t ** offsets,/* !< in: rec_get_offsets(
22662266split_rec, cursor->index); out: garbage */
22672267const dtuple_t * tuple,/* !< in: tuple to insert */
22682268ulint n_ext,/* !< in: number of externally stored columns */
@@ -2362,8 +2362,8 @@ btr_insert_on_non_leaf_level_func(
23622362dberr_t err;
23632363rec_t * rec;
23642364mem_heap_t * heap = NULL ;
2365- ulint offsets_[REC_OFFS_NORMAL_SIZE];
2366- ulint* offsets = offsets_;
2365+ offset_t offsets_[REC_OFFS_NORMAL_SIZE];
2366+ offset_t * offsets = offsets_;
23672367rec_offs_init (offsets_);
23682368rtr_info_t rtr_info;
23692369
@@ -2471,7 +2471,7 @@ btr_attach_half_pages(
24712471if (direction == FSP_DOWN) {
24722472
24732473btr_cur_t cursor;
2474- ulint* offsets;
2474+ offset_t * offsets;
24752475
24762476lower_page = buf_block_get_frame (new_block);
24772477lower_page_no = new_block->page .id .page_no ();
@@ -2593,7 +2593,7 @@ btr_page_tuple_smaller(
25932593/* ===================*/
25942594btr_cur_t * cursor,/* !< in: b-tree cursor */
25952595const dtuple_t * tuple,/* !< in: tuple to consider */
2596- ulint** offsets,/* !< in/out: temporary storage */
2596+ offset_t ** offsets,/* !< in/out: temporary storage */
25972597ulint n_uniq,/* !< in: number of unique fields
25982598in the index page records */
25992599mem_heap_t ** heap)/* !< in/out: heap for offsets */
@@ -2633,7 +2633,7 @@ rec_t*
26332633btr_insert_into_right_sibling (
26342634ulint flags,
26352635btr_cur_t * cursor,
2636- ulint** offsets,
2636+ offset_t ** offsets,
26372637mem_heap_t * heap,
26382638const dtuple_t * tuple,
26392639ulint n_ext,
@@ -2769,7 +2769,7 @@ btr_page_split_and_insert(
27692769btr_cur_t * cursor,/* !< in: cursor at which to insert; when the
27702770function returns, the cursor is positioned
27712771on the predecessor of the inserted record */
2772- ulint** offsets,/* !< out: offsets on inserted record */
2772+ offset_t ** offsets,/* !< out: offsets on inserted record */
27732773mem_heap_t ** heap,/* !< in/out: pointer to memory heap, or NULL */
27742774const dtuple_t * tuple,/* !< in: tuple to insert */
27752775ulint n_ext,/* !< in: number of externally stored columns */
@@ -3321,7 +3321,7 @@ btr_lift_page_up(
33213321
33223322{
33233323btr_cur_t cursor;
3324- ulint* offsets = NULL ;
3324+ offset_t * offsets = NULL ;
33253325mem_heap_t * heap = mem_heap_create (
33263326sizeof (*offsets)
33273327* (REC_OFFS_HEADER_SIZE + 1 + 1
@@ -3518,7 +3518,7 @@ btr_compress(
35183518page_t * page;
35193519btr_cur_t father_cursor;
35203520mem_heap_t * heap;
3521- ulint* offsets;
3521+ offset_t * offsets;
35223522ulint nth_rec = 0 ; /* remove bogus warning */
35233523bool mbr_changed = false ;
35243524#ifdef UNIV_DEBUG
@@ -3661,7 +3661,7 @@ btr_compress(
36613661if (is_left) {
36623662btr_cur_t cursor2;
36633663rtr_mbr_t new_mbr;
3664- ulint* offsets2 = NULL ;
3664+ offset_t * offsets2 = NULL ;
36653665
36663666/* For rtree, we need to update father's mbr. */
36673667if (dict_index_is_spatial (index)) {
@@ -3857,7 +3857,7 @@ btr_compress(
38573857
38583858/* For rtree, we need to update father's mbr. */
38593859if (dict_index_is_spatial (index)) {
3860- ulint* offsets2;
3860+ offset_t * offsets2;
38613861ulint rec_info;
38623862
38633863offsets2 = rec_get_offsets (
@@ -4304,7 +4304,7 @@ btr_print_recursive(
43044304ulint width,/* !< in: print this many entries from start
43054305and end */
43064306mem_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() */
43084308mtr_t * mtr)/* !< in: mtr */
43094309{
43104310const page_t * page = buf_block_get_frame (block);
@@ -4368,8 +4368,8 @@ btr_print_index(
43684368mtr_t mtr;
43694369buf_block_t * root;
43704370mem_heap_t * heap = NULL ;
4371- ulint offsets_[REC_OFFS_NORMAL_SIZE];
4372- ulint* offsets = offsets_;
4371+ offset_t offsets_[REC_OFFS_NORMAL_SIZE];
4372+ offset_t * offsets = offsets_;
43734373rec_offs_init (offsets_);
43744374
43754375fputs (" --------------------------\n "
@@ -4403,7 +4403,7 @@ btr_check_node_ptr(
44034403{
44044404mem_heap_t * heap;
44054405dtuple_t * tuple;
4406- ulint* offsets;
4406+ offset_t * offsets;
44074407btr_cur_t cursor;
44084408page_t * page = buf_block_get_frame (block);
44094409
@@ -4483,8 +4483,8 @@ btr_index_rec_validate(
44834483ulint len;
44844484const page_t * page;
44854485mem_heap_t * heap = NULL ;
4486- ulint offsets_[REC_OFFS_NORMAL_SIZE];
4487- ulint* offsets = offsets_;
4486+ offset_t offsets_[REC_OFFS_NORMAL_SIZE];
4487+ offset_t * offsets = offsets_;
44884488rec_offs_init (offsets_);
44894489
44904490page = page_align (rec);
@@ -4716,8 +4716,8 @@ btr_validate_level(
47164716bool ret = true ;
47174717mtr_t mtr;
47184718mem_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
47224722page_zip_des_t * page_zip;
47234723#endif /* UNIV_ZIP_DEBUG */
0 commit comments