mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
b18241e059
- Assign srv_undo_space_id_start when InnoDB opens extra unused InnoDB undo tablespaces in srv_all_undo_tablespaces_open(). Mariabackup can detect the undo tablespaces using srv_undo_space_id_start variable
13 lines
415 B
Text
13 lines
415 B
Text
--source include/innodb_undo_tablespaces.inc
|
|
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
|
|
CREATE TABLE t(i int);
|
|
INSERT INTO t VALUES(1);
|
|
--disable_result_log
|
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
|
|
exec $XTRABACKUP --prepare --target-dir=$targetdir;
|
|
-- source include/restart_and_restore.inc
|
|
--enable_result_log
|
|
SELECT * from t;
|
|
DROP TABLE t;
|
|
|
|
rmdir $targetdir;
|