Debian Codegraph @

mysql-test/suite/mariabackup/create_during_backup.test

raw
1 --source include/have_debug.inc
2 let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
3 mkdir $targetdir;
4
5 # this will table and populate it, after backup has list of tables to be copied
6 --let after_load_tablespaces =CREATE TABLE test.t1 ENGINE=INNODB SELECT UUID() from test.seq_1_to_10000
7
8 echo # xtrabackup backup;
9 --disable_result_log
10 exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --parallel=10 --target-dir=$targetdir --dbug=+d,mariabackup_events;
11 --enable_result_log
12
13 --let after_load_tables=
14
15 echo # xtrabackup prepare;
16 --disable_result_log
17 exec $XTRABACKUP --prepare --target-dir=$targetdir;
18 -- source include/restart_and_restore.inc
19 --enable_result_log
20
21 # Check that new table is there after restore.
22 SELECT COUNT(*) from t1;
23 DROP TABLE t1;
24 rmdir $targetdir;
25
26