mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Bug#13612811 VALGRIND ERROR IN OS_AIO_INIT
Fix valgrind warning introduced by fix for bug 11765450.
This commit is contained in:
parent
cfbe0fe0cd
commit
9cb16ec55b
1 changed files with 3 additions and 0 deletions
|
@ -3256,6 +3256,9 @@ os_aio_native_aio_supported(void)
|
|||
buf = (byte*) ut_malloc(UNIV_PAGE_SIZE * 2);
|
||||
ptr = (byte*) ut_align(buf, UNIV_PAGE_SIZE);
|
||||
|
||||
/* Suppress valgrind warning. */
|
||||
memset(buf, 0x00, UNIV_PAGE_SIZE * 2);
|
||||
|
||||
memset(&iocb, 0x0, sizeof(iocb));
|
||||
p_iocb = &iocb;
|
||||
io_prep_pwrite(p_iocb, fd, ptr, UNIV_PAGE_SIZE, 0);
|
||||
|
|
Loading…
Reference in a new issue