Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
MDEV-13561 Mariabackup is incompatible with retroactively created inn…
…odb_undo_tablespaces - Mariabackup supports starting undo tablespace id which is greater than 1.
- Loading branch information
1 parent
4629db0
commit b6d68c6
Showing
6 changed files
with
130 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| --debug=d,innodb_undo_upgrade | ||
| --innodb_undo_tablespaces=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Create 2 UNDO TABLESPACE(UNDO003, UNDO004) | ||
| CREATE TABLE t1(a varchar(60)) ENGINE INNODB; | ||
| start transaction; | ||
| INSERT INTO t1 VALUES(1); | ||
| # xtrabackup backup | ||
| # Display undo log files from target directory | ||
| undo003 | ||
| undo004 | ||
| # xtrabackup prepare | ||
| # Display undo log files from targer directory | ||
| undo003 | ||
| undo004 | ||
| DROP TABLE t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| --source include/have_innodb.inc | ||
| --source include/have_debug.inc | ||
|
|
||
| --echo # Create 2 UNDO TABLESPACE(UNDO003, UNDO004) | ||
|
|
||
| let $basedir=$MYSQLTEST_VARDIR/tmp/backup; | ||
|
|
||
| CREATE TABLE t1(a varchar(60)) ENGINE INNODB; | ||
| start transaction; | ||
| INSERT INTO t1 VALUES(1); | ||
|
|
||
| --echo # xtrabackup backup | ||
| --disable_result_log | ||
| exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$basedir; | ||
| --enable_result_log | ||
| --echo # Display undo log files from target directory | ||
| list_files $basedir undo*; | ||
|
|
||
| --echo # xtrabackup prepare | ||
| exec $XTRABACKUP --prepare --apply-log-only --target-dir=$basedir; | ||
| --echo # Display undo log files from targer directory | ||
| list_files $basedir undo*; | ||
|
|
||
| DROP TABLE t1; | ||
| rmdir $basedir; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters