mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
branches/zip: Make use of the previously unused state BUF_BLOCK_MEMORY.
buf_LRU_get_free_block(): Document that the block is in the state BUF_BLOCK_READY_FOR_USE. buf_block_alloc(): Change the state of the block to BUF_BLOCK_MEMORY and document it. Replace those invocations of buf_block_alloc() with buf_LRU_get_free_block() where the allocated block is used for buffer pool input and output. However, temporary copies of B-tree pages during reorganization are not used for file I/O, and such blocks are still allocated with buf_block_alloc().
This commit is contained in:
@@ -114,7 +114,8 @@ UNIV_INLINE
|
||||
buf_block_t*
|
||||
buf_block_alloc(
|
||||
/*============*/
|
||||
/* out, own: the allocated block */
|
||||
/* out, own: the allocated block,
|
||||
in state BUF_BLOCK_MEMORY */
|
||||
ulint zip_size); /* in: compressed page size in bytes,
|
||||
or 0 if uncompressed tablespace */
|
||||
/************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user