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-17149 mariabackup hangs if innodb is not started
Fix exit condition for the log copying thread.
- Loading branch information
Showing
4 changed files
with
24 additions
and
1 deletion.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| --loose-skip-innodb |
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,10 @@ | ||
| CREATE TABLE t(i int); | ||
| INSERT INTO t VALUES(1); | ||
| # shutdown server | ||
| # remove datadir | ||
| # xtrabackup move back | ||
| # restart server | ||
| SELECT * from t; | ||
| i | ||
| 1 | ||
| DROP TABLE t; |
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,12 @@ | ||
| 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; |