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. */
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) */
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. */
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) */
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. */
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() */