Commit ba4f8e31 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-26826 fixup for Valgrind and MemorySanitizer

The debug assertion that was added in
commit 9b967c4c
tripped Valgrind and MemorySanitizer.

buf_block_init(): Assert that block->page.hash was zero-initialized.
parent 25ac047b
......@@ -993,6 +993,8 @@ buf_block_init(buf_block_t* block, byte* frame)
page_zip_des_init(&block->page.zip);
MEM_MAKE_DEFINED(&block->page.hash, sizeof block->page.hash);
ut_ad(!block->page.hash);
MEM_MAKE_DEFINED(&block->lock, sizeof block->lock);
block->lock.init();
}
......
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