diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-10-15 16:28:19 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-10-15 17:06:17 +0300 |
commit | 9028cc6b865222cae8c396b4ec3e317c8ee068d1 (patch) | |
tree | 2aecbbca53dda9b58c605bb371908fa82bc8057f /storage/innobase/include/buf0rea.h | |
parent | 61161d51d724a7fc7f99af56b7c00dd7e86c023f (diff) | |
download | mariadb-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/buf0rea.h')
-rw-r--r-- | storage/innobase/include/buf0rea.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/storage/innobase/include/buf0rea.h b/storage/innobase/include/buf0rea.h index f4d1560862a..e111bbd7a02 100644 --- a/storage/innobase/include/buf0rea.h +++ b/storage/innobase/include/buf0rea.h @@ -106,14 +106,9 @@ for the highest address page to get read in, before this function returns @param[in] space_id tablespace id @param[in] page_nos array of page numbers to read, with the highest page number the last in the array -@param[in] n_stored number of page numbers in the array */ - -void -buf_read_recv_pages( - bool sync, - ulint space_id, - const ulint* page_nos, - ulint n_stored); +@param[in] n number of page numbers in the array */ +void buf_read_recv_pages(bool sync, ulint space_id, const uint32_t *page_nos, + ulint n); /** @name Modes used in read-ahead @{ */ /** read only pages belonging to the insert buffer tree */ |