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
let $query = "INSERT DELAYED INTO t1 VALUES (1, 'Dr. No'), (2, 'From Russia With Love'), (3, 'Goldfinger'), (4, 'Thunderball'), (5, 'You Only Live Twice')";
17
--exec $MYSQL_SLAP --silent --concurrency=5 --iterations=200 --query=$query --delimiter=";"
19
# Wait until all the 5000 inserts has been inserted into the table
20
let $wait_condition= SELECT COUNT(*) = 5000 FROM mysqlslap.t1;
21
--source include/wait_condition.inc
23
SELECT COUNT(*) FROM mysqlslap.t1;
24
sync_slave_with_master;
25
SELECT COUNT(*) FROM mysqlslap.t1;
33
DROP SCHEMA mysqlslap;
34
sync_slave_with_master;