mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 01:34:17 +01:00
5bd517259f
Fix regression (debug assertion or division by 0)
caused by cfd3d70ccb
24 lines
697 B
Text
24 lines
697 B
Text
--source include/innodb_page_size.inc
|
|
|
|
CREATE TABLE t(i INT) ENGINE INNODB;
|
|
INSERT INTO t VALUES(1);
|
|
|
|
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
|
|
mkdir $targetdir;
|
|
let $streamfile=$MYSQLTEST_VARDIR/tmp/backup.xb;
|
|
|
|
echo # xtrabackup backup to stream;
|
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --databases-exclude=foobar --stream=xbstream > $streamfile 2>$targetdir/backup_stream.log;
|
|
echo # xbstream extract;
|
|
--disable_result_log
|
|
exec $XBSTREAM -x -C $targetdir < $streamfile;
|
|
|
|
echo # xtrabackup prepare;
|
|
exec $XTRABACKUP --prepare --target-dir=$targetdir;
|
|
|
|
-- source include/restart_and_restore.inc
|
|
--enable_result_log
|
|
SELECT * FROM t;
|
|
DROP TABLE t;
|
|
rmdir $targetdir;
|
|
|