diff options
Diffstat (limited to 'innobase/buf/buf0lru.c')
-rw-r--r-- | innobase/buf/buf0lru.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/innobase/buf/buf0lru.c b/innobase/buf/buf0lru.c index 142beaaaa15..eb63fa99f4a 100644 --- a/innobase/buf/buf0lru.c +++ b/innobase/buf/buf0lru.c @@ -551,6 +551,10 @@ buf_LRU_block_free_non_file_page( block->state = BUF_BLOCK_NOT_USED; +#ifdef UNIV_DEBUG + /* Wipe contents of page to reveal possible stale pointers to it */ + memset(block->frame, '\0', UNIV_PAGE_SIZE); +#endif UT_LIST_ADD_FIRST(free, buf_pool->free, block); } |