Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c0d9e7b9
Commit
c0d9e7b9
authored
May 19, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Add proper comments to some file page accessors.
parent
70f15d3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
8 deletions
+25
-8
fil/fil0fil.c
fil/fil0fil.c
+12
-4
include/fil0fil.h
include/fil0fil.h
+13
-4
No files found.
fil/fil0fil.c
View file @
c0d9e7b9
...
...
@@ -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
);
...
...
include/fil0fil.h
View file @
c0d9e7b9
...
...
@@ -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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment