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
03180e9e
Commit
03180e9e
authored
Oct 13, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: buf_ptr_get_fsp_addr(): Change parameter ptr to const void*,
and remove the buf_block_align() call.
parent
84988bd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
include/buf0buf.h
include/buf0buf.h
+1
-1
include/buf0buf.ic
include/buf0buf.ic
+5
-6
No files found.
include/buf0buf.h
View file @
03180e9e
...
...
@@ -427,7 +427,7 @@ UNIV_INLINE
void
buf_ptr_get_fsp_addr
(
/*=================*/
byte
*
ptr
,
/* in: pointer to a buffer frame */
const
void
*
ptr
,
/* in: pointer to a buffer frame */
ulint
*
space
,
/* out: space id */
fil_addr_t
*
addr
);
/* out: page offset and byte offset */
/**************************************************************************
...
...
include/buf0buf.ic
View file @
03180e9e
...
...
@@ -281,16 +281,15 @@ UNIV_INLINE
void
buf_ptr_get_fsp_addr(
/*=================*/
byte*
ptr, /* in: pointer to a buffer frame */
const void*
ptr, /* in: pointer to a buffer frame */
ulint* space, /* out: space id */
fil_addr_t* addr) /* out: page offset and byte offset */
{
buf_block_t* block;
block = buf_block_align(ptr);
const page_t* page = ut_align_down((void*) ptr, UNIV_PAGE_SIZE);
ut_ad(buf_block_align(ptr));
*space =
buf_block_get_space(block
);
addr->page =
buf_block_get_page_no(block
);
*space =
mach_read_from_4(page + FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID
);
addr->page =
mach_read_from_4(page + FIL_PAGE_OFFSET
);
addr->boffset = ut_align_offset(ptr, UNIV_PAGE_SIZE);
}
...
...
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