File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments