2 --echo # Bug#20821: INSERT DELAYED fails to write some rows to binlog
5 --source include/master-slave.inc
6 --source include/not_embedded.inc
7 --source include/not_windows.inc
10 CREATE SCHEMA IF NOT EXISTS mysqlslap;
14 CREATE TABLE t1 (id INT, name VARCHAR(64));
16 sync_slave_with_master;
19 let $query = "INSERT DELAYED INTO t1 VALUES (1, 'Dr. No'), (2, 'From Russia With Love'), (3, 'Goldfinger'), (4, 'Thunderball'), (5, 'You Only Live Twice')";
20 --exec $MYSQL_SLAP --silent --concurrency=5 --iterations=200 --query=$query --delimiter=";"
22 # Wait until all the 5000 inserts has been inserted into the table
23 let $wait_condition= SELECT COUNT(*) = 5000 FROM mysqlslap.t1;
24 source include/wait_condition.inc;
25 SELECT COUNT(*) FROM mysqlslap.t1;
28 # Wait until all the 5000 inserts has been inserted into the table
29 let $wait_condition= SELECT COUNT(*) = 5000 FROM mysqlslap.t1;
30 source include/wait_condition.inc;
31 SELECT COUNT(*) FROM mysqlslap.t1;
39 DROP SCHEMA mysqlslap;
40 sync_slave_with_master;
41 --source include/rpl_end.inc