summaryrefslogtreecommitdiff
path: root/storage/innobase/include/page0page.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-10-15 16:28:19 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-10-15 17:06:17 +0300
commit9028cc6b865222cae8c396b4ec3e317c8ee068d1 (patch)
tree2aecbbca53dda9b58c605bb371908fa82bc8057f /storage/innobase/include/page0page.h
parent61161d51d724a7fc7f99af56b7c00dd7e86c023f (diff)
downloadmariadb-git-9028cc6b865222cae8c396b4ec3e317c8ee068d1.tar.gz
Cleanup: Make InnoDB page numbers uint32_t
InnoDB stores a 32-bit page number in page headers and in some data structures, such as FIL_ADDR (consisting of a 32-bit page number and a 16-bit byte offset within a page). For better compile-time error detection and to reduce the memory footprint in some data structures, let us use a uint32_t for the page number, instead of ulint (size_t) which can be 64 bits.
Diffstat (limited to 'storage/innobase/include/page0page.h')
-rw-r--r--storage/innobase/include/page0page.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/include/page0page.h b/storage/innobase/include/page0page.h
index 2aae5ed6989..a73b9e48755 100644
--- a/storage/innobase/include/page0page.h
+++ b/storage/innobase/include/page0page.h
@@ -568,7 +568,7 @@ page_get_middle_rec(
Gets the page number.
@return page number */
UNIV_INLINE
-ulint
+uint32_t
page_get_page_no(
/*=============*/
const page_t* page); /*!< in: page */
@@ -577,7 +577,7 @@ page_get_page_no(
Gets the tablespace identifier.
@return space id */
UNIV_INLINE
-ulint
+uint32_t
page_get_space_id(
/*==============*/
const page_t* page); /*!< in: page */