diff options
Diffstat (limited to 'storage/innobase/buf/buf0dblwr.cc')
-rw-r--r-- | storage/innobase/buf/buf0dblwr.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/storage/innobase/buf/buf0dblwr.cc b/storage/innobase/buf/buf0dblwr.cc index 88e5823e78b..cbf7885a271 100644 --- a/storage/innobase/buf/buf0dblwr.cc +++ b/storage/innobase/buf/buf0dblwr.cc @@ -229,8 +229,6 @@ fail: /* Remove doublewrite pages from LRU */ buf_pool_invalidate(); - - ib::info() << "Doublewrite buffer created"; goto start_again; } @@ -342,7 +340,7 @@ func_exit: /** Process and remove the double write buffer pages for all tablespaces. */ void buf_dblwr_t::recover() { - ut_ad(recv_sys.parse_start_lsn); + ut_ad(log_sys.last_checkpoint_lsn); if (!is_initialised()) return; @@ -360,13 +358,13 @@ void buf_dblwr_t::recover() continue; const lsn_t lsn= mach_read_from_8(page + FIL_PAGE_LSN); - if (recv_sys.parse_start_lsn > lsn) + if (log_sys.last_checkpoint_lsn > lsn) /* Pages written before the checkpoint are not useful for recovery. */ continue; const uint32_t space_id= page_get_space_id(page); const page_id_t page_id(space_id, page_no); - if (recv_sys.scanned_lsn < lsn) + if (recv_sys.lsn < lsn) { ib::info() << "Ignoring a doublewrite copy of page " << page_id << " with future log sequence number " << lsn; |