| 1 |
--source include/have_debug.inc |
| 2 |
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup; |
| 3 |
mkdir $targetdir; |
| 4 |
CREATE TABLE t1(i int) ENGINE INNODB; |
| 5 |
set global innodb_log_checkpoint_now = 1; |
| 6 |
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --parallel=10 --target-dir=$targetdir --lock-ddl-per-table --dbug=+d,rename_during_mdl_lock_table; |
| 7 |
|
| 8 |
echo # xtrabackup prepare; |
| 9 |
--disable_result_log |
| 10 |
exec $XTRABACKUP --prepare --target-dir=$targetdir; |
| 11 |
-- source include/restart_and_restore.inc |
| 12 |
--enable_result_log |
| 13 |
# the table was renamed from t1 to t2 |
| 14 |
# make sure t1 does not exist, and t2 does |
| 15 |
|
| 16 |
CREATE TABLE t1(i int); |
| 17 |
DROP TABLE t1; |
| 18 |
SELECT * from t2; |
| 19 |
DROP TABLE t2; |
| 20 |
|
| 21 |
rmdir $targetdir; |
| 22 |
|