Commit 37f03d23 authored by marko's avatar marko

branches/zip: Introduce the symbol UNIV_DEBUG_PRINT for enabling debug

print functions.

buf_LRU_print(), buf_print(): Replace #ifdef UNIV_DEBUG
with #ifdef UNIV_DEBUG_PRINT.
parent df74f57e
...@@ -2266,7 +2266,9 @@ buf_validate(void) ...@@ -2266,7 +2266,9 @@ buf_validate(void)
return(TRUE); return(TRUE);
} }
#endif /* UNIV_DEBUG */
#ifdef UNIV_DEBUG_PRINT
/************************************************************************* /*************************************************************************
Prints info of the buffer buf_pool data structure. */ Prints info of the buffer buf_pool data structure. */
...@@ -2365,9 +2367,9 @@ buf_print(void) ...@@ -2365,9 +2367,9 @@ buf_print(void)
mem_free(index_ids); mem_free(index_ids);
mem_free(counts); mem_free(counts);
ut_a(buf_validate()); ut_ad(buf_validate());
} }
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG_PRINT */
/************************************************************************* /*************************************************************************
Returns the number of latched pages in the buffer pool. */ Returns the number of latched pages in the buffer pool. */
......
...@@ -1014,7 +1014,9 @@ buf_LRU_validate(void) ...@@ -1014,7 +1014,9 @@ buf_LRU_validate(void)
mutex_exit(&(buf_pool->mutex)); mutex_exit(&(buf_pool->mutex));
return(TRUE); return(TRUE);
} }
#endif /* UNIV_DEBUG */
#ifdef UNIV_DEBUG_PRINT
/************************************************************************** /**************************************************************************
Prints the LRU list. */ Prints the LRU list. */
...@@ -1073,4 +1075,4 @@ buf_LRU_print(void) ...@@ -1073,4 +1075,4 @@ buf_LRU_print(void)
mutex_exit(&(buf_pool->mutex)); mutex_exit(&(buf_pool->mutex));
} }
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG_PRINT */
...@@ -83,6 +83,7 @@ memory is read outside the allocated blocks. */ ...@@ -83,6 +83,7 @@ memory is read outside the allocated blocks. */
/* Make a non-inline debug version */ /* Make a non-inline debug version */
#if 0 #if 0
#define UNIV_DEBUG_PRINT
#define UNIV_DEBUG #define UNIV_DEBUG
#define UNIV_MEM_DEBUG #define UNIV_MEM_DEBUG
#define UNIV_IBUF_DEBUG #define UNIV_IBUF_DEBUG
......
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