diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-06-09 13:34:52 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-06-09 13:34:52 +0300 |
commit | e11b82f8f5c7006f7bf271f0db8e8c514cc9baad (patch) | |
tree | d44b413b5cd14a296a0069eea9e82c1f26f3b61e /mysql-test/suite/mariabackup/huge_lsn.test | |
parent | 77b3959b5c1528f33ada7aa4445cccf5b5e197b0 (diff) | |
parent | a9d0bb12e68a11c119a3534f354c7a7ef13dd5b5 (diff) | |
download | mariadb-git-e11b82f8f5c7006f7bf271f0db8e8c514cc9baad.tar.gz |
Merge 10.5 into 10.6
Diffstat (limited to 'mysql-test/suite/mariabackup/huge_lsn.test')
-rw-r--r-- | mysql-test/suite/mariabackup/huge_lsn.test | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/mysql-test/suite/mariabackup/huge_lsn.test b/mysql-test/suite/mariabackup/huge_lsn.test index 0af66b761ec..66fe00dd761 100644 --- a/mysql-test/suite/mariabackup/huge_lsn.test +++ b/mysql-test/suite/mariabackup/huge_lsn.test @@ -42,7 +42,7 @@ let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err; --let SEARCH_PATTERN= InnoDB: New log file created, LSN=175964\d{8} --source include/search_pattern_in_file.inc -CREATE TABLE t(i INT) ENGINE INNODB; +CREATE TABLE t(i INT) ENGINE=INNODB ENCRYPTED=YES; INSERT INTO t VALUES(1); echo # xtrabackup backup; @@ -58,6 +58,22 @@ exec $XTRABACKUP --prepare --target-dir=$targetdir; --source include/restart_and_restore.inc --enable_result_log SELECT * FROM t; +FLUSH TABLE t FOR EXPORT; +copy_file $_datadir/test/t.ibd $_datadir/test/t_copy.ibd; +copy_file $_datadir/test/t.cfg $_datadir/test/t_copy.cfg; +UNLOCK TABLES; +ALTER TABLE t DISCARD TABLESPACE; +move_file $_datadir/test/t_copy.ibd $_datadir/test/t.ibd; +move_file $_datadir/test/t_copy.cfg $_datadir/test/t.cfg; +ALTER TABLE t IMPORT TABLESPACE; +FLUSH TABLE t FOR EXPORT; +copy_file $_datadir/test/t.ibd $_datadir/test/t_copy.ibd; +copy_file $_datadir/test/t.cfg $_datadir/test/t_copy.cfg; +UNLOCK TABLES; +ALTER TABLE t DISCARD TABLESPACE; +move_file $_datadir/test/t_copy.ibd $_datadir/test/t.ibd; +move_file $_datadir/test/t_copy.cfg $_datadir/test/t.cfg; +ALTER TABLE t IMPORT TABLESPACE; DROP TABLE t; rmdir $targetdir; let $targetdir= $targetdir_old; |