mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
branches/zip: Add proper comments to some file page accessors.
This commit is contained in:
parent
70f15d3fd9
commit
c0d9e7b96a
2 changed files with 25 additions and 8 deletions
|
@ -4687,17 +4687,25 @@ fil_addr_is_null(
|
|||
}
|
||||
|
||||
/************************************************************************
|
||||
Accessor functions for a file page */
|
||||
Get the predecessor of a file page. */
|
||||
UNIV_INTERN
|
||||
ulint
|
||||
fil_page_get_prev(const byte* page)
|
||||
fil_page_get_prev(
|
||||
/*==============*/
|
||||
/* out: FIL_PAGE_PREV */
|
||||
const byte* page) /* in: file page */
|
||||
{
|
||||
return(mach_read_from_4(page + FIL_PAGE_PREV));
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
Get the successor of a file page. */
|
||||
UNIV_INTERN
|
||||
ulint
|
||||
fil_page_get_next(const byte* page)
|
||||
fil_page_get_next(
|
||||
/*==============*/
|
||||
/* out: FIL_PAGE_NEXT */
|
||||
const byte* page) /* in: file page */
|
||||
{
|
||||
return(mach_read_from_4(page + FIL_PAGE_NEXT));
|
||||
}
|
||||
|
@ -4708,7 +4716,7 @@ UNIV_INTERN
|
|||
void
|
||||
fil_page_set_type(
|
||||
/*==============*/
|
||||
byte* page, /* in: file page */
|
||||
byte* page, /* in/out: file page */
|
||||
ulint type) /* in: type */
|
||||
{
|
||||
ut_ad(page);
|
||||
|
|
|
@ -684,19 +684,28 @@ fil_addr_is_null(
|
|||
/* out: TRUE if undefined */
|
||||
fil_addr_t addr); /* in: address */
|
||||
/************************************************************************
|
||||
Accessor functions for a file page */
|
||||
Get the predecessor of a file page. */
|
||||
UNIV_INTERN
|
||||
ulint
|
||||
fil_page_get_prev(const byte* page);
|
||||
fil_page_get_prev(
|
||||
/*==============*/
|
||||
/* out: FIL_PAGE_PREV */
|
||||
const byte* page); /* in: file page */
|
||||
/************************************************************************
|
||||
Get the successor of a file page. */
|
||||
UNIV_INTERN
|
||||
ulint
|
||||
fil_page_get_next(const byte* page);
|
||||
fil_page_get_next(
|
||||
/*==============*/
|
||||
/* out: FIL_PAGE_NEXT */
|
||||
const byte* page): /* in: file page */
|
||||
/*************************************************************************
|
||||
Sets the file page type. */
|
||||
UNIV_INTERN
|
||||
void
|
||||
fil_page_set_type(
|
||||
/*==============*/
|
||||
byte* page, /* in: file page */
|
||||
byte* page, /* in/out: file page */
|
||||
ulint type); /* in: type */
|
||||
/*************************************************************************
|
||||
Gets the file page type. */
|
||||
|
|
Loading…
Add table
Reference in a new issue