File: log_recent_closed_freeze.inc

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (25 lines) | stat: -rw-r--r-- 908 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
connect(con_log_recent_closed_freeze, localhost, root,,);
# This table is removed when we unfreeze the log recent closed.
CREATE TABLE log_recent_closed_freeze_t (a INT PRIMARY KEY) ENGINE=InnoDB;

# Force to start transaction and assign trx->id.
# This can trigger flush of max_trx_id which can
# involve its own mtr and result in dirty page.
BEGIN;
DELETE FROM log_recent_closed_freeze_t WHERE a < 0;

if ($recent_closed_freeze_empty_flush_list) {
  SET GLOBAL innodb_buf_flush_list_now = 1;
}

--source ../include/log_read_current_lsn.inc
let $old_current_lsn = $current_lsn;
let $wait_lsn = $current_lsn;
--source ../include/buf_wait_for_dirty_pages_added_up_to_lsn.inc

SET DEBUG = "+d,btr_ins_pause_on_mtr_redo_before_add_dirty_blocks";
--send INSERT INTO log_recent_closed_freeze_t VALUES (1);

--connection default
SET DEBUG_SYNC = "now WAIT_FOR btr_ins_paused";
let $current_lsn = $old_current_lsn;