~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/page0page.h

Tags: innodb-plugin-1.0.2
InnoDB Plugin 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
244
244
                                uncompressed part will be updated, or NULL */
245
245
        mtr_t*          mtr);   /* in: mtr */
246
246
/****************************************************************
247
 
Gets the first record on the page. */
 
247
Gets the offset of the first record on the page. */
248
248
UNIV_INLINE
249
 
rec_t*
250
 
page_get_infimum_rec(
251
 
/*=================*/
252
 
                        /* out: the first record in record list */
253
 
        page_t* page);  /* in: page which must have record(s) */
 
249
ulint
 
250
page_get_infimum_offset(
 
251
/*====================*/
 
252
                                /* out: offset of the first record
 
253
                                in record list, relative from page */
 
254
        const page_t*   page);  /* in: page which must have record(s) */
254
255
/****************************************************************
255
 
Gets the last record on the page. */
 
256
Gets the offset of the last record on the page. */
256
257
UNIV_INLINE
257
 
rec_t*
258
 
page_get_supremum_rec(
259
 
/*==================*/
260
 
                        /* out: the last record in record list */
261
 
        page_t* page);  /* in: page which must have record(s) */
 
258
ulint
 
259
page_get_supremum_offset(
 
260
/*=====================*/
 
261
                                /* out: offset of the last record in
 
262
                                record list, relative from page */
 
263
        const page_t*   page);  /* in: page which must have record(s) */
 
264
#define page_get_infimum_rec(page) ((page) + page_get_infimum_offset(page))
 
265
#define page_get_supremum_rec(page) ((page) + page_get_supremum_offset(page))
262
266
/****************************************************************
263
267
Returns the middle record of record list. If there are an even number
264
268
of records in the list, returns the first record of upper half-list. */
691
695
page_mem_free(
692
696
/*==========*/
693
697
        page_t*         page,   /* in/out: index page */
694
 
        page_zip_des_t* page_zip,/* in/out: compressed page with at least
695
 
                                6 bytes available, or NULL */
 
698
        page_zip_des_t* page_zip,/* in/out: compressed page, or NULL */
696
699
        rec_t*          rec,    /* in: pointer to the (origin of) record */
697
700
        dict_index_t*   index,  /* in: index of rec */
698
701
        const ulint*    offsets);/* in: array returned by rec_get_offsets() */