mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 14:15:33 +02:00
Merge 10.5 into 10.6
This commit is contained in:
commit
e11b82f8f5
45 changed files with 122 additions and 102 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
# restart
|
||||
FOUND 1 /InnoDB: New log file created, LSN=175964\d{8}/ in mysqld.1.err
|
||||
CREATE TABLE t(i INT) ENGINE INNODB;
|
||||
CREATE TABLE t(i INT) ENGINE=INNODB ENCRYPTED=YES;
|
||||
INSERT INTO t VALUES(1);
|
||||
# xtrabackup backup
|
||||
SET GLOBAL innodb_flush_log_at_trx_commit=1;
|
||||
|
|
@ -16,6 +16,14 @@ INSERT INTO t VALUES(2);
|
|||
SELECT * FROM t;
|
||||
i
|
||||
1
|
||||
FLUSH TABLE t FOR EXPORT;
|
||||
UNLOCK TABLES;
|
||||
ALTER TABLE t DISCARD TABLESPACE;
|
||||
ALTER TABLE t IMPORT TABLESPACE;
|
||||
FLUSH TABLE t FOR EXPORT;
|
||||
UNLOCK TABLES;
|
||||
ALTER TABLE t DISCARD TABLESPACE;
|
||||
ALTER TABLE t IMPORT TABLESPACE;
|
||||
DROP TABLE t;
|
||||
# shutdown server
|
||||
# remove datadir
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue