Debian Codegraph @

mysql-test/suite/innodb/include/log_recent_closed_freeze.inc

raw
1 connect(con_log_recent_closed_freeze, localhost, root,,);
2 # This table is removed when we unfreeze the log recent closed.
3 CREATE TABLE log_recent_closed_freeze_t (a INT PRIMARY KEY) ENGINE=InnoDB;
4
5 # Force to start transaction and assign trx->id.
6 # This can trigger flush of max_trx_id which can
7 # involve its own mtr and result in dirty page.
8 BEGIN;
9 DELETE FROM log_recent_closed_freeze_t WHERE a < 0;
10
11 if ($recent_closed_freeze_empty_flush_list) {
12 SET GLOBAL innodb_buf_flush_list_now = 1;
13 }
14
15 --source ../include/log_read_current_lsn.inc
16 let $old_current_lsn = $current_lsn;
17 let $wait_lsn = $current_lsn;
18 --source ../include/buf_wait_for_dirty_pages_added_up_to_lsn.inc
19
20 SET DEBUG = "+d,btr_ins_pause_on_mtr_redo_before_add_dirty_blocks";
21 --send INSERT INTO log_recent_closed_freeze_t VALUES (1);
22
23 --connection default
24 SET DEBUG_SYNC = "now WAIT_FOR btr_ins_paused";
25 let $current_lsn = $old_current_lsn;