Skip to content

Commit ba4f8e3

Browse files
committed
MDEV-26826 fixup for Valgrind and MemorySanitizer
The debug assertion that was added in commit 9b967c4 tripped Valgrind and MemorySanitizer. buf_block_init(): Assert that block->page.hash was zero-initialized.
1 parent 25ac047 commit ba4f8e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

storage/innobase/buf/buf0buf.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,8 @@ buf_block_init(buf_block_t* block, byte* frame)
993993

994994
page_zip_des_init(&block->page.zip);
995995

996+
MEM_MAKE_DEFINED(&block->page.hash, sizeof block->page.hash);
997+
ut_ad(!block->page.hash);
996998
MEM_MAKE_DEFINED(&block->lock, sizeof block->lock);
997999
block->lock.init();
9981000
}

0 commit comments

Comments
 (0)