Skip to content

Commit b21f52e

Browse files
committed
Merge 10.5 into 10.6
2 parents 0a4103e + b5e43a1 commit b21f52e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

storage/innobase/buf/buf0flu.cc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,19 @@ bool buf_page_t::flush(bool evict, fil_space_t *space)
796796

797797
if (s < UNFIXED)
798798
{
799+
if (UNIV_LIKELY(space->purpose == FIL_TYPE_TABLESPACE))
800+
{
801+
const lsn_t lsn=
802+
mach_read_from_8(my_assume_aligned<8>
803+
(FIL_PAGE_LSN + (zip.data ? zip.data : frame)));
804+
ut_ad(lsn >= oldest_modification());
805+
if (lsn > log_sys.get_flushed_lsn())
806+
{
807+
mysql_mutex_unlock(&buf_pool.mutex);
808+
log_write_up_to(lsn, true);
809+
mysql_mutex_lock(&buf_pool.mutex);
810+
}
811+
}
799812
buf_pool.release_freed_page(this);
800813
return false;
801814
}

0 commit comments

Comments
 (0)