Commit 4dfc4e32 authored by unknown's avatar unknown

page0page.ic:

  Move inline function page_is_cmp() before its use in page0page.ic; maybe this fixes a linking error reported by Lenz


innobase/include/page0page.ic:
  Move inline function page_is_cmp() before its use in page0page.ic; maybe this fixes a linking error reported by Lenz
parent fcaa0217
...@@ -152,6 +152,19 @@ page_header_reset_last_insert( ...@@ -152,6 +152,19 @@ page_header_reset_last_insert(
MLOG_2BYTES, mtr); MLOG_2BYTES, mtr);
} }
/****************************************************************
Determine whether the page is in new-style compact format. */
UNIV_INLINE
ibool
page_is_comp(
/*=========*/
/* out: TRUE if the page is in compact format
FALSE if it is in old-style format */
page_t* page) /* in: index page */
{
return(!!(page_header_get_field(page, PAGE_N_HEAP) & 0x8000));
}
/**************************************************************** /****************************************************************
Gets the first record on the page. */ Gets the first record on the page. */
UNIV_INLINE UNIV_INLINE
...@@ -513,19 +526,6 @@ page_dir_calc_reserved_space( ...@@ -513,19 +526,6 @@ page_dir_calc_reserved_space(
/ PAGE_DIR_SLOT_MIN_N_OWNED); / PAGE_DIR_SLOT_MIN_N_OWNED);
} }
/****************************************************************
Determine whether the page is in new-style compact format. */
UNIV_INLINE
ibool
page_is_comp(
/*=========*/
/* out: TRUE if the page is in compact format
FALSE if it is in old-style format */
page_t* page) /* in: index page */
{
return(!!(page_header_get_field(page, PAGE_N_HEAP) & 0x8000));
}
/**************************************************************** /****************************************************************
Gets the pointer to the next record on the page. */ Gets the pointer to the next record on the page. */
UNIV_INLINE UNIV_INLINE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment