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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
12682d42
Commit
12682d42
authored
Dec 07, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Introduce the constant BUF_BUDDY_HIGH.
parent
b5fb7cd1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
include/buf0buddy.ic
include/buf0buddy.ic
+1
-1
include/buf0buf.h
include/buf0buf.h
+2
-2
include/buf0types.h
include/buf0types.h
+5
-0
No files found.
include/buf0buddy.ic
View file @
12682d42
...
...
@@ -39,7 +39,7 @@ buf_buddy_get_offset(
{
ut_ad(ut_is_2pow(size));
ut_ad(size >= BUF_BUDDY_LOW);
ut_ad(size < BUF_BUDDY_
LOW << BUF_BUDDY_SIZES
);
ut_ad(size < BUF_BUDDY_
HIGH
);
if (((ulint) page) & size) {
return(-(lint) size);
...
...
include/buf0buf.h
View file @
12682d42
...
...
@@ -1171,8 +1171,8 @@ struct buf_pool_struct{
/* unmodified compressed pages */
UT_LIST_BASE_NODE_T
(
buf_page_t
)
zip_free
[
BUF_BUDDY_SIZES
];
/* buddy free lists */
#if BUF_BUDDY_
LOW << BUF_BUDDY_SIZES
!= UNIV_PAGE_SIZE
# error "BUF_BUDDY_
LOW << BUF_BUDDY_SIZES
!= UNIV_PAGE_SIZE"
#if BUF_BUDDY_
HIGH
!= UNIV_PAGE_SIZE
# error "BUF_BUDDY_
HIGH
!= UNIV_PAGE_SIZE"
#endif
#if BUF_BUDDY_LOW > PAGE_ZIP_MIN_SIZE
# error "BUF_BUDDY_LOW > PAGE_ZIP_MIN_SIZE"
...
...
include/buf0types.h
View file @
12682d42
...
...
@@ -43,5 +43,10 @@ enum buf_io_fix {
# define BUF_BUDDY_SIZES 7
#endif
/* twice the maximum block size of the buddy system;
the underlying memory is aligned by this amount:
this must be equal to UNIV_PAGE_SIZE */
#define BUF_BUDDY_HIGH (BUF_BUDDY_LOW << BUF_BUDDY_SIZES)
#endif
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