1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Silence some more bogus Valgrind warnings on non-32-bit systems. (Bug #53307)

This commit is contained in:
Marko Mäkelä
2010-05-19 11:01:52 +03:00
parent 72541c6b0d
commit b8df3227da
4 changed files with 21 additions and 1 deletions

View File

@ -2280,7 +2280,12 @@ wait_until_unfixed:
ut_ad(buf_block_get_state(block) == BUF_BLOCK_FILE_PAGE);
mutex_enter(&block->mutex);
#if UNIV_WORD_SIZE == 4
/* On 32-bit systems, there is no padding in buf_page_t. On
other systems, Valgrind could complain about uninitialized pad
bytes. */
UNIV_MEM_ASSERT_RW(&block->page, sizeof block->page);
#endif
buf_block_buf_fix_inc(block, file, line);