summaryrefslogtreecommitdiff
path: root/storage/innobase/include/page0page.ic
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-02-08 14:12:59 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-02-08 14:12:59 +0200
commit06b0623adb71f2b7918f69ab68660ec45736ebb5 (patch)
tree4ffb56ff961a962ff1831f5c5ddb0286d2305382 /storage/innobase/include/page0page.ic
parentc5856b0a68165952e4781cdccc7849c717a16980 (diff)
downloadmariadb-git-06b0623adb71f2b7918f69ab68660ec45736ebb5.tar.gz
Cleanup: Aligned InnoDB index page header access
ut_align_down(): Preserve the const qualifier. Use C++ casts. ha_delete_hash_node(): Correct an assertion expression. fil_page_get_type(): Perform an assumed-aligned read. page_align(): Preserve the const qualifier. Assume (some) alignment. page_get_max_trx_id(): Check the index page type. page_header_get_field(): Perform an assumed-aligned read. page_get_autoinc(): Perform an assumed-aligned read. page_dir_get_nth_slot(): Perform an assumed-aligned read. Preserve the const qualifier.
Diffstat (limited to 'storage/innobase/include/page0page.ic')
-rw-r--r--storage/innobase/include/page0page.ic46
1 files changed, 0 insertions, 46 deletions
diff --git a/storage/innobase/include/page0page.ic b/storage/innobase/include/page0page.ic
index 5b26fe47412..eaf44600b60 100644
--- a/storage/innobase/include/page0page.ic
+++ b/storage/innobase/include/page0page.ic
@@ -62,18 +62,6 @@ page_update_max_trx_id(
}
}
-/** Read the AUTO_INCREMENT value from a clustered index root page.
-@param[in] page clustered index root page
-@return the persisted AUTO_INCREMENT value */
-UNIV_INLINE
-ib_uint64_t
-page_get_autoinc(const page_t* page)
-{
- ut_ad(fil_page_index_page_check(page));
- ut_ad(!page_has_siblings(page));
- return(mach_read_from_8(PAGE_HEADER + PAGE_ROOT_AUTO_INC + page));
-}
-
/*************************************************************//**
Returns the RTREE SPLIT SEQUENCE NUMBER (FIL_RTREE_SPLIT_SEQ_NUM).
@return SPLIT SEQUENCE NUMBER */
@@ -116,21 +104,6 @@ page_set_ssn_id(
#endif /* !UNIV_INNOCHECKSUM */
-/*************************************************************//**
-Reads the given header field. */
-UNIV_INLINE
-uint16_t
-page_header_get_field(
-/*==================*/
- const page_t* page, /*!< in: page */
- ulint field) /*!< in: PAGE_LEVEL, ... */
-{
- ut_ad(page);
- ut_ad(field <= PAGE_INDEX_ID);
-
- return(mach_read_from_2(page + PAGE_HEADER + field));
-}
-
#ifndef UNIV_INNOCHECKSUM
/*************************************************************//**
Sets the given header field. */
@@ -495,25 +468,6 @@ page_dir_set_n_heap(
& page_header_get_field(page, PAGE_N_HEAP)));
}
-#ifdef UNIV_DEBUG
-/*************************************************************//**
-Gets pointer to nth directory slot.
-@return pointer to dir slot */
-UNIV_INLINE
-page_dir_slot_t*
-page_dir_get_nth_slot(
-/*==================*/
- const page_t* page, /*!< in: index page */
- ulint n) /*!< in: position */
-{
- ut_ad(page_dir_get_n_slots(page) > n);
-
- return((page_dir_slot_t*)
- page + srv_page_size - PAGE_DIR
- - (n + 1) * PAGE_DIR_SLOT_SIZE);
-}
-#endif /* UNIV_DEBUG */
-
/**************************************************************//**
Used to check the consistency of a record on a page.
@return TRUE if succeed */