diff --git a/storage/innobase/include/buf0flu.ic b/storage/innobase/include/buf0flu.ic index 3e7c255171e..7a28c94150b 100644 --- a/storage/innobase/include/buf0flu.ic +++ b/storage/innobase/include/buf0flu.ic @@ -60,11 +60,8 @@ buf_flush_note_modification( ut_ad(mach_read_from_8(block->frame + FIL_PAGE_LSN) <= end_lsn); mach_write_to_8(block->frame + FIL_PAGE_LSN, end_lsn); if (UNIV_LIKELY_NULL(block->page.zip.data)) { - compile_time_assert(FIL_PAGE_LSN % 8 == 0); - *reinterpret_cast(FIL_PAGE_LSN - + block->page.zip.data) - = *reinterpret_cast(FIL_PAGE_LSN - + block->frame); + memcpy_aligned<8>(FIL_PAGE_LSN + block->page.zip.data, + FIL_PAGE_LSN + block->frame, 8); } if (block->page.oldest_modification == 0) { diff --git a/storage/innobase/row/row0import.cc b/storage/innobase/row/row0import.cc index 1c9efb37a97..5baeeab81bd 100644 --- a/storage/innobase/row/row0import.cc +++ b/storage/innobase/row/row0import.cc @@ -2122,8 +2122,7 @@ dberr_t PageConverter::operator()(buf_block_t* block) UNIV_NOTHROW const bool full_crc32 = fil_space_t::full_crc32(get_space_flags()); byte* frame = get_frame(block); - compile_time_assert(FIL_PAGE_LSN % 8 == 0); - *reinterpret_cast(frame + FIL_PAGE_LSN)= 0; + memset_aligned<8>(frame + FIL_PAGE_LSN, 0, 8); if (!block->page.zip.data) { buf_flush_init_for_writing(