mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
fc716dc5a5
* Wait for aborted thd (victim) to release MDL locks * Skip aborting an already aborted thd * Defer setting OK status in case of CTAS * Minor cosmetic changes * Added a test case
57 lines
1.4 KiB
Text
57 lines
1.4 KiB
Text
--source include/galera_cluster.inc
|
|
--source include/have_innodb.inc
|
|
|
|
--write_file $MYSQLTEST_VARDIR/tmp/galera_concurrent.sql
|
|
CREATE table t1 as SELECT SLEEP(0);
|
|
DROP table t1;
|
|
CREATE table t1 as SELECT SLEEP(0);
|
|
DROP table t1;
|
|
CREATE table t1 as SELECT SLEEP(0);
|
|
DROP table t1;
|
|
CREATE table t1 as SELECT SLEEP(0);
|
|
DROP table t1;
|
|
CREATE table t1 as SELECT SLEEP(0);
|
|
DROP table t1;
|
|
CREATE table t1 as SELECT SLEEP(0);
|
|
DROP table t1;
|
|
CREATE table t1 as SELECT SLEEP(0);
|
|
DROP table t1;
|
|
CREATE table t1 as SELECT SLEEP(0);
|
|
DROP table t1;
|
|
CREATE table t1 as SELECT SLEEP(0);
|
|
CREATE table t2 as SELECT SLEEP(0);
|
|
CREATE table t3 as SELECT SLEEP(0);
|
|
CREATE table t4 as SELECT SLEEP(0);
|
|
CREATE table t5 as SELECT SLEEP(0);
|
|
CREATE table t6 as SELECT SLEEP(0);
|
|
CREATE table t7 as SELECT SLEEP(0);
|
|
CREATE table t8 as SELECT SLEEP(0);
|
|
CREATE table t9 as SELECT SLEEP(0);
|
|
DROP table t1;
|
|
DROP table t2;
|
|
DROP table t3;
|
|
DROP table t4;
|
|
DROP table t5;
|
|
DROP table t6;
|
|
DROP table t7;
|
|
DROP table t8;
|
|
DROP table t9;
|
|
EOF
|
|
|
|
let $run=10;
|
|
|
|
while($run)
|
|
{
|
|
--error 0,1
|
|
exec $MYSQL --user=root --host=127.0.0.1 --port=$NODE_MYPORT_1 test
|
|
< $MYSQLTEST_VARDIR/tmp/galera_concurrent.sql &
|
|
$MYSQL --user=root --host=127.0.0.1 --port=$NODE_MYPORT_2 test
|
|
< $MYSQLTEST_VARDIR/tmp/galera_concurrent.sql;
|
|
dec $run;
|
|
}
|
|
|
|
--remove_file $MYSQLTEST_VARDIR/tmp/galera_concurrent.sql
|
|
|
|
--source include/galera_end.inc
|
|
--echo # End of test
|
|
|