mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
branches/zip: Introduce a new preprocessor symbol, UNIV_BUF_DEBUG, and
enclose buf_validate() and friends in it.
This commit is contained in:
@@ -97,6 +97,7 @@ buf_flush_ready_for_replace(
|
||||
buf_block_t* block); /* in: buffer control block, must
|
||||
be in state BUF_BLOCK_FILE_PAGE
|
||||
and in the LRU list */
|
||||
#if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG
|
||||
/**********************************************************************
|
||||
Validates the flush list. */
|
||||
|
||||
@@ -104,6 +105,7 @@ ibool
|
||||
buf_flush_validate(void);
|
||||
/*====================*/
|
||||
/* out: TRUE if ok */
|
||||
#endif /* UNIV_DEBUG || UNIV_BUF_DEBUG */
|
||||
|
||||
/* When buf_flush_free_margin is called, it tries to make this many blocks
|
||||
available to replacement in the free list and at the end of the LRU list (to
|
||||
|
||||
Reference in New Issue
Block a user