summaryrefslogtreecommitdiff
path: root/storage/innobase/include/fsp0fsp.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-05-07 17:15:34 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-05-07 17:15:34 +0300
commit18a62eb76df0cc0bece66ba29c354c613f58e944 (patch)
tree7bd7c36be88a9cc5a1f5181938de58f8b775575b /storage/innobase/include/fsp0fsp.h
parentba573c4736f908a6525acddb7573cc7d818eaa25 (diff)
downloadmariadb-git-18a62eb76df0cc0bece66ba29c354c613f58e944.tar.gz
MDEV-21133 follow-up: Use fil_page_get_type()
Let us use the common accessor function fil_page_get_type() instead of accessing the page header field FIL_PAGE_TYPE directly.
Diffstat (limited to 'storage/innobase/include/fsp0fsp.h')
-rw-r--r--storage/innobase/include/fsp0fsp.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/storage/innobase/include/fsp0fsp.h b/storage/innobase/include/fsp0fsp.h
index 073854b31bd..7a945f3a59e 100644
--- a/storage/innobase/include/fsp0fsp.h
+++ b/storage/innobase/include/fsp0fsp.h
@@ -568,14 +568,6 @@ Any other pages were written with uninitialized bytes in FIL_PAGE_TYPE.
ATTRIBUTE_COLD
void fil_block_reset_type(const buf_block_t& block, ulint type, mtr_t* mtr);
-/** Get the file page type.
-@param[in] page file page
-@return page type */
-inline uint16_t fil_page_get_type(const byte* page)
-{
- return mach_read_from_2(my_assume_aligned<2>(page + FIL_PAGE_TYPE));
-}
-
/** Check (and if needed, reset) the page type.
Data files created before MySQL 5.1.48 may contain
garbage in the FIL_PAGE_TYPE field.