2012-09-13 14:31:29 +02:00
|
|
|
SET GLOBAL innodb_flush_log_at_trx_commit=3;
|
2010-10-18 11:25:06 +02:00
|
|
|
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=innodb;
|
|
|
|
INSERT INTO t1 VALUES (0);
|
2016-03-25 20:51:22 +04:00
|
|
|
connect con1,localhost,root,,;
|
|
|
|
connect con2,localhost,root,,;
|
|
|
|
connect con3,localhost,root,,;
|
|
|
|
connection con1;
|
2010-10-29 13:58:47 +02:00
|
|
|
SET DEBUG_SYNC= "commit_after_get_LOCK_log SIGNAL con1_waiting WAIT_FOR con3_queued";
|
2010-10-18 11:25:06 +02:00
|
|
|
SET DEBUG_SYNC= "commit_loop_entry_commit_ordered SIGNAL con1_loop WAIT_FOR con1_loop_cont EXECUTE 3";
|
|
|
|
INSERT INTO t1 VALUES (1);
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
2010-10-18 11:25:06 +02:00
|
|
|
SET DEBUG_SYNC= "now WAIT_FOR con1_waiting";
|
|
|
|
SET DEBUG_SYNC= "commit_after_prepare_ordered SIGNAL con2_queued";
|
|
|
|
INSERT INTO t1 VALUES (2);
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con3;
|
2010-10-18 11:25:06 +02:00
|
|
|
SET DEBUG_SYNC= "now WAIT_FOR con2_queued";
|
|
|
|
SET DEBUG_SYNC= "commit_after_prepare_ordered SIGNAL con3_queued";
|
|
|
|
INSERT INTO t1 VALUES (3);
|
2016-03-25 20:51:22 +04:00
|
|
|
connection default;
|
2010-10-18 11:25:06 +02:00
|
|
|
SET DEBUG_SYNC= "now WAIT_FOR con1_loop";
|
|
|
|
SET DEBUG_SYNC= "now SIGNAL con1_loop_cont";
|
|
|
|
SET DEBUG_SYNC= "now WAIT_FOR con1_loop";
|
|
|
|
SET DEBUG_SYNC= "now SIGNAL con1_loop_cont";
|
|
|
|
SET DEBUG_SYNC= "now WAIT_FOR con1_loop";
|
|
|
|
SELECT * FROM t1 ORDER BY a;
|
|
|
|
a
|
|
|
|
0
|
|
|
|
1
|
|
|
|
2
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con2;
|
|
|
|
connection default;
|
2011-12-15 22:07:58 +01:00
|
|
|
SET SESSION debug_dbug="+d,crash_dispatch_command_before";
|
2010-10-18 11:25:06 +02:00
|
|
|
SELECT 1;
|
2010-10-23 11:50:02 +02:00
|
|
|
Got one of the listed errors
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con1;
|
2010-10-23 11:50:02 +02:00
|
|
|
Got one of the listed errors
|
2016-03-25 20:51:22 +04:00
|
|
|
connection con3;
|
2010-10-23 11:50:02 +02:00
|
|
|
Got one of the listed errors
|
2016-03-25 20:51:22 +04:00
|
|
|
connection default;
|
2010-10-18 11:25:06 +02:00
|
|
|
SELECT * FROM t1 ORDER BY a;
|
|
|
|
a
|
|
|
|
0
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
2017-06-29 23:03:39 +03:00
|
|
|
InnoDB: Last binlog file './master-bin.000001', position <pos>
|
2010-10-18 11:25:06 +02:00
|
|
|
SET DEBUG_SYNC= 'RESET';
|
|
|
|
DROP TABLE t1;
|