We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a4103e + b5e43a1 commit b21f52eCopy full SHA for b21f52e
storage/innobase/buf/buf0flu.cc
@@ -796,6 +796,19 @@ bool buf_page_t::flush(bool evict, fil_space_t *space)
796
797
if (s < UNFIXED)
798
{
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
812
buf_pool.release_freed_page(this);
813
return false;
814
}
0 commit comments