@@ -510,13 +510,13 @@ buf_page_is_corrupted(
510510 }
511511
512512#if !defined(UNIV_HOTBACKUP) && !defined(UNIV_INNOCHECKSUM)
513- if (check_lsn && recv_lsn_checks_on ) {
513+ if (check_lsn && recover_ptr-> is_lsn_check_on () ) {
514514 lsn_t current_lsn;
515515
516516 /* Since we are going to reset the page LSN during the import
517517 phase it makes no sense to spam the log with error messages. */
518518
519- if (log_peek_lsn (¤t_lsn)
519+ if (redo_log-> peek_lsn (¤t_lsn)
520520 && current_lsn
521521 < mach_read_from_8 (read_buf + FIL_PAGE_LSN)) {
522522 ut_print_timestamp (stderr);
@@ -2576,16 +2576,14 @@ buf_page_get_gen(
25762576 buf_block_t * block;
25772577 ulint fold;
25782578 unsigned access_time;
2579- ulint fix_type;
25802579 ibool must_read;
25812580 rw_lock_t * hash_lock;
25822581 ib_mutex_t * block_mutex;
25832582 buf_page_t * hash_bpage;
25842583 ulint retries = 0 ;
25852584 buf_pool_t * buf_pool = buf_pool_get (space, offset);
25862585
2587- ut_ad (mtr);
2588- ut_ad (mtr->state == MTR_ACTIVE);
2586+ ut_ad (mtr->is_active ());
25892587 ut_ad ((rw_latch == RW_S_LATCH)
25902588 || (rw_latch == RW_X_LATCH)
25912589 || (rw_latch == RW_NO_LATCH));
@@ -2865,7 +2863,7 @@ buf_page_get_gen(
28652863 verification is not necessary when decompressing the page. */
28662864 ut_a (buf_zip_decompress (block, FALSE ));
28672865
2868- if (UNIV_LIKELY (!recv_no_ibuf_operations )) {
2866+ if (redo_log-> is_ibuf_allowed ( )) {
28692867 if (access_time) {
28702868#ifdef UNIV_IBUF_COUNT_DEBUG
28712869 ut_a (ibuf_count_get (space, offset) == 0 );
@@ -3003,6 +3001,8 @@ buf_page_get_gen(
30033001 ut_a (buf_block_get_state (block) == BUF_BLOCK_FILE_PAGE);
30043002#endif /* UNIV_DEBUG || UNIV_BUF_DEBUG */
30053003
3004+ mtr_memo_type_t fix_type;
3005+
30063006 switch (rw_latch) {
30073007 case RW_NO_LATCH:
30083008 if (must_read) {
@@ -3082,11 +3082,10 @@ buf_page_optimistic_get(
30823082 buf_pool_t * buf_pool;
30833083 unsigned access_time;
30843084 ibool success;
3085- ulint fix_type;
30863085
30873086 ut_ad (block);
30883087 ut_ad (mtr);
3089- ut_ad (mtr->state == MTR_ACTIVE );
3088+ ut_ad (mtr->is_active () );
30903089 ut_ad ((rw_latch == RW_S_LATCH) || (rw_latch == RW_X_LATCH));
30913090
30923091 mutex_enter (&block->mutex );
@@ -3113,6 +3112,8 @@ buf_page_optimistic_get(
31133112 buf_block_get_zip_size (block),
31143113 buf_block_get_page_no (block), NULL ));
31153114
3115+ mtr_memo_type_t fix_type;
3116+
31163117 if (rw_latch == RW_S_LATCH) {
31173118 success = rw_lock_s_lock_nowait (&(block->lock ),
31183119 file, line);
@@ -3199,10 +3200,8 @@ buf_page_get_known_nowait(
31993200{
32003201 buf_pool_t * buf_pool;
32013202 ibool success;
3202- ulint fix_type;
32033203
3204- ut_ad (mtr);
3205- ut_ad (mtr->state == MTR_ACTIVE);
3204+ ut_ad (mtr->is_active ());
32063205 ut_ad ((rw_latch == RW_S_LATCH) || (rw_latch == RW_X_LATCH));
32073206
32083207 mutex_enter (&block->mutex );
@@ -3236,6 +3235,8 @@ buf_page_get_known_nowait(
32363235
32373236 ut_ad (!ibuf_inside (mtr) || mode == BUF_KEEP_OLD);
32383237
3238+ mtr_memo_type_t fix_type;
3239+
32393240 if (rw_latch == RW_S_LATCH) {
32403241 success = rw_lock_s_lock_nowait (&(block->lock ),
32413242 file, line);
@@ -3303,12 +3304,11 @@ buf_page_try_get_func(
33033304{
33043305 buf_block_t * block;
33053306 ibool success;
3306- ulint fix_type;
33073307 buf_pool_t * buf_pool = buf_pool_get (space_id, page_no);
33083308 rw_lock_t * hash_lock;
33093309
33103310 ut_ad (mtr);
3311- ut_ad (mtr->state == MTR_ACTIVE );
3311+ ut_ad (mtr->is_active () );
33123312
33133313 block = buf_block_hash_get_s_locked (buf_pool, space_id,
33143314 page_no, &hash_lock);
@@ -3334,7 +3334,7 @@ buf_page_try_get_func(
33343334 buf_block_buf_fix_inc (block, file, line);
33353335 mutex_exit (&block->mutex );
33363336
3337- fix_type = MTR_MEMO_PAGE_S_FIX;
3337+ mtr_memo_type_t fix_type = MTR_MEMO_PAGE_S_FIX;
33383338 success = rw_lock_s_lock_nowait (&block->lock , file, line);
33393339
33403340 if (!success) {
@@ -3530,7 +3530,7 @@ buf_page_init_for_read(
35303530
35313531 ibuf_mtr_start (&mtr);
35323532
3533- if (!recv_no_ibuf_operations
3533+ if (redo_log-> is_ibuf_allowed ()
35343534 && !ibuf_page (space, zip_size, offset, &mtr)) {
35353535
35363536 ibuf_mtr_commit (&mtr);
@@ -3541,7 +3541,7 @@ buf_page_init_for_read(
35413541 ut_ad (mode == BUF_READ_ANY_PAGE);
35423542 }
35433543
3544- if (zip_size && !unzip && !recv_recovery_is_on ()) {
3544+ if (zip_size && !unzip && !redo_log-> is_recovery_on ()) {
35453545 block = NULL ;
35463546 } else {
35473547 block = buf_LRU_get_free_block (buf_pool);
@@ -3760,8 +3760,7 @@ buf_page_create(
37603760 buf_pool_t * buf_pool = buf_pool_get (space, offset);
37613761 rw_lock_t * hash_lock;
37623762
3763- ut_ad (mtr);
3764- ut_ad (mtr->state == MTR_ACTIVE);
3763+ ut_ad (mtr->is_active ());
37653764 ut_ad (space || !zip_size);
37663765
37673766 free_block = buf_LRU_get_free_block (buf_pool);
@@ -4194,17 +4193,18 @@ buf_page_io_complete(
41944193 DBUG_EXECUTE_IF (" buf_page_is_corrupt_failure" ,
41954194 page_not_corrupt: bpage = bpage; );
41964195
4197- if (recv_recovery_is_on ()) {
4196+ if (redo_log-> is_recovery_on ()) {
41984197 /* Pages must be uncompressed for crash recovery. */
41994198 ut_a (uncompressed);
4200- recv_recover_page (TRUE , (buf_block_t *) bpage);
4199+ recover_ptr-> recover_page (TRUE , (buf_block_t *) bpage);
42014200 }
42024201
42034202 /* If space is being truncated then avoid ibuf operation.
42044203 During re-init we have already freed ibuf entries. */
42054204 if (uncompressed
4206- && !recv_no_ibuf_operations
4205+ && redo_log-> is_ibuf_allowed ()
42074206 && !srv_is_tablespace_truncated (bpage->space )) {
4207+
42084208 ibuf_merge_or_delete_for_page (
42094209 (buf_block_t *) bpage, bpage->space ,
42104210 bpage->offset , buf_page_get_zip_size (bpage),
0 commit comments