diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc index b34dc6708a0..0d6348c75d1 100644 --- a/storage/innobase/os/os0file.cc +++ b/storage/innobase/os/os0file.cc @@ -6668,7 +6668,11 @@ os_fusionio_get_sector_size() /* Try to write the file with different sector size alignment. */ +#ifdef UNIV_DEBUG_VALGRIND + ptr = static_cast(ut_zalloc_nokey(2 * MAX_SECTOR_SIZE)); +#else ptr = static_cast(ut_malloc_nokey(2 * MAX_SECTOR_SIZE)); +#endif while (sector_size <= MAX_SECTOR_SIZE) { block_ptr = static_cast(