mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
4fd096df06
give every bootstrap server its own tmpdir, by default it's var/tmp, which is shared in --parallel
27 lines
729 B
Text
27 lines
729 B
Text
source include/have_static_innodb.inc;
|
|
source include/not_embedded.inc;
|
|
|
|
let $datadir= `select @@datadir`;
|
|
|
|
create table t1(a int) engine=innodb;
|
|
source include/shutdown_mysqld.inc;
|
|
|
|
write_file $MYSQLTEST_VARDIR/tmp/bootstrap_test.sql;
|
|
use test;
|
|
insert t1 values (1);
|
|
start transaction;
|
|
insert t1 values (2);
|
|
savepoint s1;
|
|
insert t1 values (3);
|
|
savepoint s2;
|
|
insert t1 values (4);
|
|
rollback to savepoint s1;
|
|
insert t1 values (5);
|
|
commit;
|
|
EOF
|
|
exec $MYSQLD_BOOTSTRAP_CMD --datadir=$datadir --tmpdir=$MYSQL_TMP_DIR --innodb < $MYSQLTEST_VARDIR/tmp/bootstrap_test.sql >> $MYSQLTEST_VARDIR/tmp/bootstrap.log 2>&1;
|
|
remove_file $MYSQLTEST_VARDIR/tmp/bootstrap_test.sql;
|
|
|
|
source include/start_mysqld.inc;
|
|
select * from t1;
|
|
drop table t1;
|