mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
5e6324b7e7
ibuf_parse_bitmap_init(), ibuf_bitmap_page_init(), ibuf_bitmap_page_get_bits(), ibuf_bitmap_set_bits(), ibuf_bitmap_page_no_calc(), ibuf_bitmap_get_map_page(), xdes_calc_descriptor_page(), xdes_calc_descriptor_index(), fsp_descr_page(): Add parameter zip_size.
28 lines
791 B
Text
28 lines
791 B
Text
/******************************************************
|
|
File space management
|
|
|
|
(c) 1995 Innobase Oy
|
|
|
|
Created 12/18/1995 Heikki Tuuri
|
|
*******************************************************/
|
|
|
|
/***************************************************************************
|
|
Checks if a page address is an extent descriptor page address. */
|
|
UNIV_INLINE
|
|
ibool
|
|
fsp_descr_page(
|
|
/*===========*/
|
|
/* out: TRUE if a descriptor page */
|
|
ulint zip_size,/* in: compressed page size in bytes;
|
|
0 for uncompressed pages */
|
|
ulint page_no)/* in: page number */
|
|
{
|
|
ut_ad(!(zip_size & (zip_size - 1))); /* must be a power of 2 */
|
|
|
|
if (!zip_size) {
|
|
return(UNIV_UNLIKELY((page_no & (UNIV_PAGE_SIZE - 1))
|
|
== FSP_XDES_OFFSET));
|
|
}
|
|
|
|
return(UNIV_UNLIKELY((page_no & (zip_size - 1)) == FSP_XDES_OFFSET));
|
|
}
|