Commit 64ed375e authored by marko's avatar marko

branches/zip: buf_buddy_alloc(), buf_buddy_alloc_low(): Correct a mistake

in the function comment.  There is no value BUF_BUDDY_USE_LRU.  The mistake
was made in r1290.
parent f1a9f56a
...@@ -21,10 +21,10 @@ Created December 2006 by Marko Makela ...@@ -21,10 +21,10 @@ Created December 2006 by Marko Makela
Allocate a block. The thread calling this function must hold Allocate a block. The thread calling this function must hold
buf_pool_mutex and must not hold buf_pool_zip_mutex or any buf_pool_mutex and must not hold buf_pool_zip_mutex or any
block->mutex. The buf_pool_mutex may only be released and reacquired block->mutex. The buf_pool_mutex may only be released and reacquired
if lru == BUF_BUDDY_USE_LRU. This function should only be used for if lru != NULL. This function should only be used for allocating
allocating compressed page frames or control blocks (buf_page_t). compressed page frames or control blocks (buf_page_t). Allocated
Allocated control blocks must be properly initialized immediately control blocks must be properly initialized immediately after
after buf_buddy_alloc() has returned the memory, before releasing buf_buddy_alloc() has returned the memory, before releasing
buf_pool_mutex. */ buf_pool_mutex. */
UNIV_INLINE UNIV_INLINE
void* void*
......
...@@ -19,8 +19,7 @@ Created December 2006 by Marko Makela ...@@ -19,8 +19,7 @@ Created December 2006 by Marko Makela
/************************************************************************** /**************************************************************************
Allocate a block. The thread calling this function must hold Allocate a block. The thread calling this function must hold
buf_pool_mutex and must not hold buf_pool_zip_mutex or any block->mutex. buf_pool_mutex and must not hold buf_pool_zip_mutex or any block->mutex.
The buf_pool_mutex may only be released and reacquired if The buf_pool_mutex may only be released and reacquired if lru != NULL. */
lru == BUF_BUDDY_USE_LRU. */
UNIV_INTERN UNIV_INTERN
void* void*
buf_buddy_alloc_low( buf_buddy_alloc_low(
...@@ -70,10 +69,10 @@ buf_buddy_get_slot( ...@@ -70,10 +69,10 @@ buf_buddy_get_slot(
Allocate a block. The thread calling this function must hold Allocate a block. The thread calling this function must hold
buf_pool_mutex and must not hold buf_pool_zip_mutex or any buf_pool_mutex and must not hold buf_pool_zip_mutex or any
block->mutex. The buf_pool_mutex may only be released and reacquired block->mutex. The buf_pool_mutex may only be released and reacquired
if lru == BUF_BUDDY_USE_LRU. This function should only be used for if lru != NULL. This function should only be used for allocating
allocating compressed page frames or control blocks (buf_page_t). compressed page frames or control blocks (buf_page_t). Allocated
Allocated control blocks must be properly initialized immediately control blocks must be properly initialized immediately after
after buf_buddy_alloc() has returned the memory, before releasing buf_buddy_alloc() has returned the memory, before releasing
buf_pool_mutex. */ buf_pool_mutex. */
UNIV_INLINE UNIV_INLINE
void* void*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment