mirror of
https://github.com/MariaDB/server.git
synced 2025-01-25 00:04:33 +01:00
Introduce #define UNIV_LIST_DEBUG for enabling the debug code in
UT_LIST_REMOVE_CLEAR().
This commit is contained in:
parent
c0fd7331fd
commit
7cc0c62e77
2 changed files with 2 additions and 1 deletions
|
@ -75,6 +75,7 @@ memory is read outside the allocated blocks. */
|
|||
|
||||
#if 0
|
||||
#define UNIV_DEBUG
|
||||
#define UNIV_LIST_DEBUG
|
||||
#define UNIV_MEM_DEBUG
|
||||
#define UNIV_IBUF_DEBUG
|
||||
#define UNIV_SYNC_DEBUG
|
||||
|
|
|
@ -124,7 +124,7 @@ name, NODE1 and NODE2 are pointers to nodes. */
|
|||
}\
|
||||
|
||||
/* Invalidate the pointers in a list node. */
|
||||
#ifdef UNIV_DEBUG
|
||||
#ifdef UNIV_LIST_DEBUG
|
||||
# define UT_LIST_REMOVE_CLEAR(NAME, N) \
|
||||
((N)->NAME.prev = (N)->NAME.next = (void*) -1)
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue