test failure
use --defaults-file to avoid reading ~/.my.cnf and don't crash if some ibdata file couldn't be opened
This commit is contained in:
parent
e8bc838eb9
commit
4e07fc0ab5
@ -977,7 +977,7 @@ copy_file(ds_ctxt_t *datasink,
|
|||||||
const char *action;
|
const char *action;
|
||||||
|
|
||||||
if (!datafile_open(src_file_path, &cursor, thread_n)) {
|
if (!datafile_open(src_file_path, &cursor, thread_n)) {
|
||||||
goto error;
|
goto error_close;
|
||||||
}
|
}
|
||||||
|
|
||||||
strncpy(dst_name, cursor.rel_path, sizeof(dst_name));
|
strncpy(dst_name, cursor.rel_path, sizeof(dst_name));
|
||||||
|
@ -7,7 +7,7 @@ shutdown_server;
|
|||||||
echo # remove datadir;
|
echo # remove datadir;
|
||||||
rmdir $_datadir;
|
rmdir $_datadir;
|
||||||
echo # xtrabackup move back;
|
echo # xtrabackup move back;
|
||||||
exec $XTRABACKUP --copy-back --datadir=$_datadir --target-dir=$targetdir --parallel=2;
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --copy-back --datadir=$_datadir --target-dir=$targetdir --parallel=2;
|
||||||
echo # restart server;
|
echo # restart server;
|
||||||
exec echo "restart" > $_expect_file_name;
|
exec echo "restart" > $_expect_file_name;
|
||||||
enable_reconnect;
|
enable_reconnect;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user