Commit b21f52ee authored by Marko Mäkelä's avatar Marko Mäkelä

Merge 10.5 into 10.6

parents 0a4103e6 b5e43a1d
......@@ -796,6 +796,19 @@ bool buf_page_t::flush(bool evict, fil_space_t *space)
if (s < UNFIXED)
{
if (UNIV_LIKELY(space->purpose == FIL_TYPE_TABLESPACE))
{
const lsn_t lsn=
mach_read_from_8(my_assume_aligned<8>
(FIL_PAGE_LSN + (zip.data ? zip.data : frame)));
ut_ad(lsn >= oldest_modification());
if (lsn > log_sys.get_flushed_lsn())
{
mysql_mutex_unlock(&buf_pool.mutex);
log_write_up_to(lsn, true);
mysql_mutex_lock(&buf_pool.mutex);
}
}
buf_pool.release_freed_page(this);
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment