Skip to content

Commit 772d6d3

Browse files
committed
MDEV-18543 fixup: Fix 32-bit builds
1 parent 05a0eae commit 772d6d3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

storage/innobase/include/page0page.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*****************************************************************************
22
Copyright (c) 1994, 2019, Oracle and/or its affiliates. All Rights Reserved.
3-
Copyright (c) 2013, 2020, MariaDB Corporation.
3+
Copyright (c) 2013, 2021, MariaDB Corporation.
44
55
This program is free software; you can redistribute it and/or modify it under
66
the terms of the GNU General Public License as published by the Free Software
@@ -570,7 +570,7 @@ page_get_middle_rec(
570570
Gets the page number.
571571
@return page number */
572572
UNIV_INLINE
573-
ulint
573+
uint32_t
574574
page_get_page_no(
575575
/*=============*/
576576
const page_t* page); /*!< in: page */
@@ -579,7 +579,7 @@ page_get_page_no(
579579
Gets the tablespace identifier.
580580
@return space id */
581581
UNIV_INLINE
582-
ulint
582+
uint32_t
583583
page_get_space_id(
584584
/*==============*/
585585
const page_t* page); /*!< in: page */

storage/innobase/include/page0page.ic

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*****************************************************************************
22

33
Copyright (c) 1994, 2019, Oracle and/or its affiliates. All Rights Reserved.
4-
Copyright (c) 2016, 2020, MariaDB Corporation.
4+
Copyright (c) 2016, 2021, MariaDB Corporation.
55

66
This program is free software; you can redistribute it and/or modify it under
77
the terms of the GNU General Public License as published by the Free Software
@@ -421,7 +421,7 @@ page_get_middle_rec(
421421
Gets the page number.
422422
@return page number */
423423
UNIV_INLINE
424-
ulint
424+
uint32_t
425425
page_get_page_no(
426426
/*=============*/
427427
const page_t* page) /*!< in: page */
@@ -435,7 +435,7 @@ page_get_page_no(
435435
Gets the tablespace identifier.
436436
@return space id */
437437
UNIV_INLINE
438-
ulint
438+
uint32_t
439439
page_get_space_id(
440440
/*==============*/
441441
const page_t* page) /*!< in: page */

storage/innobase/row/row0import.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3229,10 +3229,10 @@ static dberr_t handle_instant_metadata(dict_table_t *table,
32293229
return err;
32303230
}
32313231

3232-
const auto zip_size= fil_space_t::zip_size(space_flags);
3233-
const uint64_t physical_size= zip_size ? zip_size : srv_page_size;
3232+
const unsigned zip_size= fil_space_t::zip_size(space_flags);
3233+
const unsigned physical_size= zip_size ? zip_size : unsigned(srv_page_size);
32343234
ut_ad(physical_size <= UNIV_PAGE_SIZE_MAX);
3235-
const auto space_id= page_get_space_id(first_page.get());
3235+
const uint32_t space_id= page_get_space_id(first_page.get());
32363236

32373237
auto *space_crypt= fil_space_read_crypt_data(zip_size, first_page.get());
32383238
SCOPE_EXIT([&space_crypt]() {

0 commit comments

Comments
 (0)