mirror of
https://github.com/MariaDB/server.git
synced 2025-04-18 21:44:20 +03:00
MDEV-35049: Use CRC-32C and avoid allocating heap (postfix)
The n_pointers member of block is only defined (in the C++ meaning) under the 'if defined UNIV_AHI_DEBUG || defined UNIV_DEBUG' condition. As without this change, this won't compile under WITH_MSAN=ON build for non-debug builds.
This commit is contained in:
parent
2e1ade5307
commit
9e3a541d1e
@ -1047,9 +1047,9 @@ static void buf_block_init_low(buf_block_t *block) noexcept
|
||||
/* No adaptive hash index entries may point to a previously unused
|
||||
(and now freshly allocated) block. */
|
||||
MEM_MAKE_DEFINED(&block->index, sizeof block->index);
|
||||
MEM_MAKE_DEFINED(&block->n_pointers, sizeof block->n_pointers);
|
||||
MEM_MAKE_DEFINED(&block->n_hash_helps, sizeof block->n_hash_helps);
|
||||
# if defined UNIV_AHI_DEBUG || defined UNIV_DEBUG
|
||||
MEM_MAKE_DEFINED(&block->n_pointers, sizeof block->n_pointers);
|
||||
ut_a(!block->index);
|
||||
ut_a(!block->n_pointers);
|
||||
ut_a(!block->n_hash_helps);
|
||||
|
Loading…
x
Reference in New Issue
Block a user