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
b5fb7cd1
Commit
b5fb7cd1
authored
Dec 07, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Rename buf_buddy_alloc_free() to buf_buddy_alloc() and
buf_buddy_alloc_free_low() to buf_buddy_alloc_low().
parent
0d5f0ab7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
buf/buf0buddy.c
buf/buf0buddy.c
+4
-4
include/buf0buddy.h
include/buf0buddy.h
+2
-2
include/buf0buddy.ic
include/buf0buddy.ic
+5
-5
No files found.
buf/buf0buddy.c
View file @
b5fb7cd1
...
...
@@ -18,8 +18,8 @@ Created December 2006 by Marko Makela
Try to allocate a block from buf_pool->zip_free[]. */
void
*
buf_buddy_alloc_
free_
low
(
/*================
=====
*/
buf_buddy_alloc_low
(
/*================*/
/* out: allocated block, or NULL
if buf_pool->zip_free[] was empty */
ulint
i
,
/* in: index of buf_pool->zip_free[] */
...
...
@@ -40,10 +40,10 @@ buf_buddy_alloc_free_low(
UT_LIST_REMOVE
(
list
,
buf_pool
->
zip_free
[
i
],
bpage
);
}
else
if
(
split
&&
i
+
1
<
BUF_BUDDY_SIZES
)
{
bpage
=
buf_buddy_alloc_
free_
low
(
i
+
1
,
split
);
bpage
=
buf_buddy_alloc_low
(
i
+
1
,
split
);
if
(
bpage
)
{
buf_page_t
*
buddy
=
bpage
+
BUF_BUDDY_LOW
<<
i
;
buf_page_t
*
buddy
=
bpage
+
(
BUF_BUDDY_LOW
<<
i
)
;
UT_LIST_ADD_FIRST
(
list
,
buf_pool
->
zip_free
[
i
],
buddy
);
}
...
...
include/buf0buddy.h
View file @
b5fb7cd1
...
...
@@ -45,8 +45,8 @@ buf_buddy_get_slot(
Try to allocate a block from buf_pool->zip_free[]. */
UNIV_INLINE
void
*
buf_buddy_alloc
_free
(
/*============
=====
*/
buf_buddy_alloc
(
/*============*/
ulint
size
,
/* in: block size, up to UNIV_PAGE_SIZE / 2 */
ibool
split
)
/* in: TRUE=attempt splitting,
FALSE=try to allocate exact size */
...
...
include/buf0buddy.ic
View file @
b5fb7cd1
...
...
@@ -18,8 +18,8 @@ Created December 2006 by Marko Makela
Try to allocate a block from buf_pool->zip_free[]. */
void*
buf_buddy_alloc_
free_
low(
/*================
=====
*/
buf_buddy_alloc_low(
/*================*/
/* out: allocated block, or NULL
if buf_pool->zip_free[] was empty */
ulint i, /* in: index of buf_pool->zip_free[] */
...
...
@@ -70,8 +70,8 @@ buf_buddy_get_slot(
Try to allocate a block from buf_pool->zip_free[]. */
UNIV_INLINE
void*
buf_buddy_alloc
_free
(
/*============
=====
*/
buf_buddy_alloc(
/*============*/
ulint size, /* in: block size, up to UNIV_PAGE_SIZE / 2 */
ibool split) /* in: TRUE=attempt splitting,
FALSE=try to allocate exact size */
...
...
@@ -80,7 +80,7 @@ buf_buddy_alloc_free(
ut_a(mutex_own(&buf_pool->mutex));
#endif /* UNIV_SYNC_DEBUG */
return(buf_buddy_alloc_
free_
low(buf_buddy_get_slot(size), split));
return(buf_buddy_alloc_low(buf_buddy_get_slot(size), split));
}
#ifdef UNIV_MATERIALIZE
...
...
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