mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
d27196b43b
mysql-test/suite/rpl/r/rpl_start_stop_slave.result: updated result mysql-test/suite/rpl/t/rpl_critical_errors.test: replace --sleep mysql-test/suite/rpl/t/rpl_err_ignoredtable.test: replace --sleep mysql-test/suite/rpl/t/rpl_init_slave.test: remove --sleep mysql-test/suite/rpl/t/rpl_insert.test: replace --sleep mysql-test/suite/rpl/t/rpl_loadfile.test: replace --sleep mysql-test/suite/rpl/t/rpl_row_sp001.test: replace --sleep mysql-test/suite/rpl/t/rpl_row_sp005.test: replace --sleep mysql-test/suite/rpl/t/rpl_row_stop_middle.test: replace --sleep mysql-test/suite/rpl/t/rpl_row_trig001.test: replace --sleep mysql-test/suite/rpl/t/rpl_row_trig003.test: replace --sleep mysql-test/suite/rpl/t/rpl_ssl1.test: replace --sleep mysql-test/suite/rpl/t/rpl_start_stop_slave.test: replace --sleep mysql-test/suite/rpl/t/rpl_switch_stm_row_mixed.test: replace --sleep mysql-test/suite/rpl/t/rpl_temporary.test: replace --sleep
34 lines
952 B
Text
34 lines
952 B
Text
--echo #
|
|
--echo # Bug#20821: INSERT DELAYED fails to write some rows to binlog
|
|
--echo #
|
|
|
|
--source include/master-slave.inc
|
|
--source include/not_embedded.inc
|
|
--source include/not_windows.inc
|
|
|
|
--disable_warnings
|
|
CREATE SCHEMA IF NOT EXISTS mysqlslap;
|
|
USE mysqlslap;
|
|
--enable_warnings
|
|
|
|
CREATE TABLE t1 (id INT, name VARCHAR(64));
|
|
|
|
let $query = "INSERT DELAYED INTO t1 VALUES (1, 'Dr. No'), (2, 'From Russia With Love'), (3, 'Goldfinger'), (4, 'Thunderball'), (5, 'You Only Live Twice')";
|
|
--exec $MYSQL_SLAP --silent --concurrency=5 --iterations=200 --query=$query --delimiter=";"
|
|
|
|
# Wait until all the 5000 inserts has been inserted into the table
|
|
let $wait_condition= SELECT COUNT(*) = 5000 FROM mysqlslap.t1;
|
|
--source include/wait_condition.inc
|
|
|
|
SELECT COUNT(*) FROM mysqlslap.t1;
|
|
sync_slave_with_master;
|
|
SELECT COUNT(*) FROM mysqlslap.t1;
|
|
|
|
--echo #
|
|
--echo # Cleanup
|
|
--echo #
|
|
|
|
connection master;
|
|
USE test;
|
|
DROP SCHEMA mysqlslap;
|
|
sync_slave_with_master;
|