| 1 |
SET GLOBAL innodb_flush_log_at_trx_commit = 1; |
| 2 |
CREATE TABLE t1 (a CHAR(8)); |
| 3 |
SET GLOBAL innodb_log_writer_threads = ON; |
| 4 |
SET DEBUG_SYNC = 'RESET'; |
| 5 |
SET DEBUG_SYNC = 'log_flushed_by_writer SIGNAL log_flushed'; |
| 6 |
SET AUTOCOMMIT = 1; |
| 7 |
INSERT INTO t1 (a) VALUES ('a'); |
| 8 |
SET DEBUG_SYNC = 'now WAIT_FOR log_flushed'; |
| 9 |
SET GLOBAL innodb_log_writer_threads = OFF; |
| 10 |
SET DEBUG_SYNC = 'RESET'; |
| 11 |
SET DEBUG_SYNC = 'log_flushed_by_self SIGNAL log_flushed'; |
| 12 |
SET AUTOCOMMIT = 1; |
| 13 |
INSERT INTO t1 (a) VALUES ('a'); |
| 14 |
SET DEBUG_SYNC = 'now WAIT_FOR log_flushed'; |
| 15 |
SET DEBUG_SYNC = 'RESET'; |
| 16 |
DROP TABLE t1; |