~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/fsp0fsp.ic

  • Committer: Monty Taylor
  • Date: 2008-11-16 05:36:13 UTC
  • mto: (584.1.9 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081116053613-bld4rqxhlkb49c02
Split out cache_row and type_holder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************
 
2
File space management
 
3
 
 
4
(c) 1995 Innobase Oy
 
5
 
 
6
Created 12/18/1995 Heikki Tuuri
 
7
*******************************************************/
 
8
 
 
9
/***************************************************************************
 
10
Checks if a page address is an extent descriptor page address. */
 
11
UNIV_INLINE
 
12
ibool
 
13
fsp_descr_page(
 
14
/*===========*/
 
15
                        /* out: TRUE if a descriptor page */
 
16
        ulint   zip_size,/* in: compressed page size in bytes;
 
17
                        0 for uncompressed pages */
 
18
        ulint   page_no)/* in: page number */
 
19
{
 
20
        ut_ad(ut_is_2pow(zip_size));
 
21
 
 
22
        if (!zip_size) {
 
23
                return(UNIV_UNLIKELY((page_no & (UNIV_PAGE_SIZE - 1))
 
24
                                     == FSP_XDES_OFFSET));
 
25
        }
 
26
 
 
27
        return(UNIV_UNLIKELY((page_no & (zip_size - 1)) == FSP_XDES_OFFSET));
 
28
}