mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Test suites for engine testing, moved from test-extra so will be available
for general use. mysql-test/Makefile.am: Adding directories of additional test suites mysql-test/mysql-stress-test.pl: Adding check for additional errors checking during test run
This commit is contained in:
22
mysql-test/suite/engines/funcs/t/rpl_many_optimize.test
Normal file
22
mysql-test/suite/engines/funcs/t/rpl_many_optimize.test
Normal file
@ -0,0 +1,22 @@
|
||||
# Test for BUG#7658 "optimize crashes slave thread (1 in 1000)]"
|
||||
|
||||
source include/master-slave.inc;
|
||||
|
||||
create table t1 (a int not null auto_increment primary key, b int, key(b));
|
||||
INSERT INTO t1 (a) VALUES (1),(2);
|
||||
# Now many OPTIMIZE to test if we crash (BUG#7658)
|
||||
let $1=300;
|
||||
disable_query_log;
|
||||
disable_result_log;
|
||||
while ($1)
|
||||
{
|
||||
eval OPTIMIZE TABLE t1;
|
||||
dec $1;
|
||||
}
|
||||
enable_result_log;
|
||||
enable_query_log;
|
||||
drop table t1;
|
||||
# Bug was that slave segfaulted after ~ a hundred of OPTIMIZE (or ANALYZE)
|
||||
sync_slave_with_master;
|
||||
|
||||
# End of 4.1 tests
|
Reference in New Issue
Block a user