Debian Codegraph @

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

raw
1 --source ../include/log_read_current_lsn.inc
2 let $wait_lsn = $current_lsn;
3
4 if ($debug_test) {
5 --echo Current LSN: $current_lsn
6 }
7
8 --source ../include/buf_wait_for_dirty_pages_added_up_to_lsn.inc
9
10 --source ../include/log_read_checkpoint_lsn.inc
11
12 if ($debug_test) {
13 --echo Checkpoint LSN: $checkpoint_lsn
14 }
15
16 let $oldest_approx = `SELECT COUNT FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME = 'log_lsn_buf_pool_oldest_approx';`;
17
18 if ($debug_test) {
19 --echo Oldest LSN approximation: $oldest_approx
20 }
21
22 --let $assert_cond = $oldest_approx = 0 OR $oldest_approx >= $checkpoint_lsn
23 --let $assert_text = We must not have oldest_lsn_approx < checkpoint_lsn.
24 --source include/assert.inc
25
26 SET GLOBAL innodb_checkpoint_disabled = 0;
27 SET GLOBAL innodb_log_checkpoint_fuzzy_now = 1;
28 SET GLOBAL innodb_checkpoint_disabled = 1;
29
30 if ($debug_test) {
31 --source ../include/log_read_checkpoint_lsn.inc
32 --echo New checkpoint LSN: $checkpoint_lsn
33 }
34
35 --source include/kill_and_restart_mysqld.inc
36 --disable_query_log