| 1 |
include/only_with_option.inc [GLOBAL.binlog_order_commits = 1] |
| 2 |
RESET MASTER; |
| 3 |
CREATE TABLE t1(c1 INT PRIMARY KEY, c2 INT) ENGINE = InnoDB; |
| 4 |
SET DEBUG_SYNC = "bgc_after_enrolling_for_commit_stage |
| 5 |
SIGNAL insert1_ready WAIT_FOR continue_commit_stage"; |
| 6 |
INSERT INTO t1 VALUES(1, 1); |
| 7 |
SET DEBUG_SYNC = "now WAIT_FOR insert1_ready"; |
| 8 |
SET DEBUG_SYNC = "reached_finish_commit WAIT_FOR insert2_finish"; |
| 9 |
INSERT INTO t1 VALUES(2, 1); |
| 10 |
SET DEBUG_SYNC = "now SIGNAL continue_commit_stage"; |
| 11 |
UPDATE t1 SET c2 = 2 WHERE c1 = 2; |
| 12 |
SET DEBUG_SYNC = "now SIGNAL insert2_finish"; |
| 13 |
include/include/assert_logical_timestamps.inc [3 4] |
| 14 |
DROP TABLE t1; |