| 1 |
SET DEBUG_SYNC='trx_flush_log_if_needed SIGNAL hit'; |
| 2 |
SET GLOBAL innodb_monitor_enable = "trx_on_log%"; |
| 3 |
SET GLOBAL innodb_monitor_reset="trx_on_log_%"; |
| 4 |
SELECT SUM(count_reset) FROM information_schema.innodb_metrics |
| 5 |
WHERE name IN ("trx_on_log_no_waits", "trx_on_log_waits"); |
| 6 |
SUM(count_reset) |
| 7 |
0 |
| 8 |
CREATE PROCEDURE t () BEGIN END; |
| 9 |
SELECT SUM(count_reset) FROM information_schema.innodb_metrics |
| 10 |
WHERE name IN ("trx_on_log_no_waits", "trx_on_log_waits"); |
| 11 |
SUM(count_reset) |
| 12 |
1 |
| 13 |
SET DEBUG_SYNC='now WAIT_FOR hit'; |
| 14 |
DROP PROCEDURE t; |