|
|
@ -53,8 +53,6 @@ INSERT INTO t21 VALUES(1); |
|
|
|
|
|
|
|
let $MYSQLD_DATADIR= `select @@datadir`; |
|
|
|
let $targetdir=$MYSQLTEST_VARDIR/tmp/bk; |
|
|
|
let old_datadir=$MYSQLTEST_VARDIR/tmp/old_data; |
|
|
|
--mkdir $old_datadir |
|
|
|
|
|
|
|
CREATE TABLE t2(i int) ENGINE INNODB; |
|
|
|
ALTER TABLE t21 FORCE, ALGORITHM=INPLACE; |
|
|
@ -65,28 +63,15 @@ ALTER TABLE t21 FORCE, ALGORITHM=INPLACE; |
|
|
|
--disable_result_log |
|
|
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup "--tables-exclude=test.t21" --target-dir=$targetdir; |
|
|
|
--enable_result_log |
|
|
|
--list_files $targetdir/test |
|
|
|
|
|
|
|
--echo # After partial restore operation, t21 files will be missing but t21 |
|
|
|
--echo # table information will be present in dictionary. It will |
|
|
|
--echo # restrict creating the table t21 in the future test. To avoid |
|
|
|
--echo # that, take the copy of t21 files and drop the table later. |
|
|
|
--copy_file $MYSQLD_DATADIR/test/t21.frm $old_datadir/t21.frm |
|
|
|
--list_files $targetdir/test *.ibd |
|
|
|
|
|
|
|
--echo # Prepare the full backup |
|
|
|
--disable_result_log |
|
|
|
exec $XTRABACKUP --prepare --target-dir=$targetdir; |
|
|
|
--source include/restart_and_restore.inc |
|
|
|
--enable_result_log |
|
|
|
|
|
|
|
SHOW TABLES; |
|
|
|
--list_files $targetdir/test *.ibd |
|
|
|
|
|
|
|
DROP TABLE t1; |
|
|
|
DROP TABLE t2; |
|
|
|
|
|
|
|
--echo # Move the t21 files into data directory |
|
|
|
--copy_file $old_datadir/t21.frm $MYSQLD_DATADIR/test/t21.frm |
|
|
|
|
|
|
|
DROP TABLE t21; |
|
|
|
rmdir $targetdir; |
|
|
|
rmdir $old_datadir; |