Skip to content

Commit 808851d

Browse files
committed
Merge 10.6 into 10.11
2 parents 68432a0 + e809982 commit 808851d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

storage/innobase/buf/buf0buf.cc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3899,19 +3899,6 @@ dberr_t buf_page_t::read_complete(const fil_node_t &node) noexcept
38993899
goto database_corrupted;
39003900
}
39013901

3902-
if (belongs_to_unzip_LRU())
3903-
{
3904-
buf_pool.n_pend_unzip++;
3905-
auto ok= buf_zip_decompress(reinterpret_cast<buf_block_t*>(this), false);
3906-
buf_pool.n_pend_unzip--;
3907-
3908-
if (!ok)
3909-
{
3910-
err= DB_PAGE_CORRUPTED;
3911-
goto database_corrupted_compressed;
3912-
}
3913-
}
3914-
39153902
{
39163903
const page_id_t read_id(mach_read_from_4(read_frame + FIL_PAGE_SPACE_ID),
39173904
mach_read_from_4(read_frame + FIL_PAGE_OFFSET));
@@ -3952,6 +3939,19 @@ dberr_t buf_page_t::read_complete(const fil_node_t &node) noexcept
39523939
}
39533940
}
39543941

3942+
if (belongs_to_unzip_LRU())
3943+
{
3944+
buf_pool.n_pend_unzip++;
3945+
auto ok= buf_zip_decompress(reinterpret_cast<buf_block_t*>(this), false);
3946+
buf_pool.n_pend_unzip--;
3947+
3948+
if (!ok)
3949+
{
3950+
err= DB_PAGE_CORRUPTED;
3951+
goto database_corrupted_compressed;
3952+
}
3953+
}
3954+
39553955
err= buf_page_check_corrupt(this, node);
39563956
if (UNIV_UNLIKELY(err != DB_SUCCESS))
39573957
{

storage/innobase/buf/buf0dblwr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ void buf_dblwr_t::recover() noexcept
381381
const page_t *const page= *i;
382382
const uint32_t page_no= page_get_page_no(page);
383383
const lsn_t lsn= mach_read_from_8(page + FIL_PAGE_LSN);
384-
if (log_sys.last_checkpoint_lsn > lsn || lsn > recv_sys.lsn)
384+
if (log_sys.last_checkpoint_lsn > lsn || lsn > max_lsn)
385385
/* Pages written before or after the recovery range are not usable. */
386386
continue;
387387
const uint32_t space_id= page_get_space_id(page);

0 commit comments

Comments
 (0)