mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
specify that they want a MyISAM table, otherwise they fail when run with --default-storage-engine=maria. mysql-test/extra/rpl_tests/rpl_flsh_tbls.test: uses INSERT DELAYED so has to specify MyISAM mysql-test/extra/rpl_tests/rpl_insert_delayed.test: uses INSERT DELAYED so has to specify MyISAM mysql-test/r/query_cache.result: result update mysql-test/r/rpl_insert.result: result update mysql-test/r/rpl_stm_flsh_tbls.result: result update mysql-test/r/rpl_stm_insert_delayed.result: result update mysql-test/r/rpl_switch_stm_row_mixed.result: result update mysql-test/r/subselect.result: result update mysql-test/t/query_cache.test: uses MERGE so has to specify MyISAM mysql-test/t/query_cache_merge.test: uses MERGE so has to specify MyISAM mysql-test/t/rpl_insert.test: uses INSERT DELAYED so has to specify MyISAM mysql-test/t/rpl_stm_flsh_tbls.test: specifying the engine lengthens the query in binlog so shifts positions mysql-test/t/rpl_switch_stm_row_mixed.test: uses INSERT DELAYED so has to specify MyISAM mysql-test/t/subselect.test: uses INSERT DELAYED so has to specify MyISAM
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
--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)) ENGINE=MyISAM;
|
|
|
|
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
|
|
--disable_query_log
|
|
let $counter= 300; # Max 30 seconds wait
|
|
while (`select count(*)!=5000 from mysqlslap.t1`)
|
|
{
|
|
sleep 0.1;
|
|
dec $counter;
|
|
if (!$counter)
|
|
{
|
|
Number of records in t1 didnt reach 5000;
|
|
}
|
|
}
|
|
--enable_query_log
|
|
|
|
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;
|