Commit a1e51e7f authored by Marko Mäkelä's avatar Marko Mäkelä

Mariabackup: Test file cleanup

parent 4fe89773
let $_server_id= `SELECT @@server_id`;
let $_datadir= `SELECT @@datadir`; let $_datadir= `SELECT @@datadir`;
let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect;
exec echo "wait" > $_expect_file_name;
echo # shutdown server; echo # shutdown server;
shutdown_server; --source include/shutdown_mysqld.inc
echo # remove datadir; echo # remove datadir;
rmdir $_datadir; rmdir $_datadir;
echo # xtrabackup move back; echo # xtrabackup move back;
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --copy-back --datadir=$_datadir --target-dir=$targetdir --parallel=2 --throttle=1; exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --copy-back --datadir=$_datadir --target-dir=$targetdir --parallel=2 --throttle=1;
echo # restart server; echo # restart server;
exec echo "restart" > $_expect_file_name; --source include/start_mysqld.inc
enable_reconnect;
source include/wait_until_connected_again.inc;
disable_reconnect;
source include/have_file_key_management.inc; source include/have_file_key_management.inc;
CREATE TABLE t1(c1 INT, b VARCHAR(2400), index(b(100),c1)) ENGINE=INNODB ROW_FORMAT=compressed ENCRYPTED=YES; CREATE TABLE t1(c1 INT, b VARCHAR(2400), index(b(100),c1)) ENGINE=INNODB ROW_FORMAT=compressed ENCRYPTED=YES;
DELIMITER //; DELIMITER //;
CREATE PROCEDURE innodb_insert_proc (REPEAT_COUNT INT) CREATE PROCEDURE innodb_insert_proc (REPEAT_COUNT INT)
BEGIN BEGIN
...@@ -14,12 +14,12 @@ BEGIN ...@@ -14,12 +14,12 @@ BEGIN
END// END//
DELIMITER ;// DELIMITER ;//
COMMIT; COMMIT;
SET AUTOCOMMIT=0; SET AUTOCOMMIT=0;
CALL innodb_insert_proc(50000); CALL innodb_insert_proc(50000);
COMMIT; COMMIT;
echo # xtrabackup backup; echo # xtrabackup backup;
--disable_result_log --disable_result_log
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup; let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment