File tree Expand file tree Collapse file tree 3 files changed +54
-0
lines changed
mysql-test/suite/mariabackup Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ [innodb]
2+ default-storage-engine=innodb
3+
4+ [myisam]
5+ default-storage-engine=myisam
Original file line number Diff line number Diff line change 1+ create table t (a int) with system versioning;
2+ insert into t values (1);
3+ update t set a=2;
4+ insert into t values (3);
5+ # shutdown server
6+ # remove datadir
7+ # xtrabackup move back
8+ # restart server
9+ show create table t;
10+ Table Create Table
11+ t CREATE TABLE `t` (
12+ `a` int(11) DEFAULT NULL,
13+ `sys_trx_start` SYS_TRX_TYPE GENERATED ALWAYS AS ROW START,
14+ `sys_trx_end` SYS_TRX_TYPE GENERATED ALWAYS AS ROW END,
15+ PERIOD FOR SYSTEM_TIME (`sys_trx_start`, `sys_trx_end`)
16+ ) ENGINE=INNODB_OR_MYISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
17+ select * from t;
18+ a
19+ 2
20+ select a from t for system_time all;
21+ a
22+ 2
23+ 1
24+ drop table t;
Original file line number Diff line number Diff line change 1+ create table t (a int) with system versioning;
2+ insert into t values (1);
3+ update t set a=2;
4+
5+ let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
6+
7+ --disable_result_log
8+ exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
9+ --enable_result_log
10+
11+ insert into t values (3);
12+
13+ --disable_result_log
14+ exec $XTRABACKUP --prepare --target-dir=$targetdir;
15+ -- source include/restart_and_restore.inc
16+ --enable_result_log
17+
18+ --replace_result "bigint unsigned" SYS_TRX_TYPE timestamp(6) SYS_TRX_TYPE
19+ --replace_result InnoDB INNODB_OR_MYISAM MyISAM INNODB_OR_MYISAM "bigint(20) unsigned" SYS_TRX_TYPE timestamp(6) SYS_TRX_TYPE
20+ show create table t;
21+ select * from t;
22+ select a from t for system_time all;
23+
24+ drop table t;
25+ rmdir $targetdir;
You can’t perform that action at this time.
0 commit comments