Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
164 additions
and
9 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,13 @@ | ||
CREATE TABLE t(a INT) ENGINE=InnoDB DATA DIRECTORY='table_data_dir'; | ||
INSERT INTO t VALUES(1); | ||
# xtrabackup backup | ||
# xtrabackup prepare | ||
DROP TABLE t; | ||
# shutdown server | ||
# remove datadir | ||
# xtrabackup move back | ||
# restart server | ||
SELECT * FROM t; | ||
a | ||
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,23 @@ | ||
let $table_data_dir=$MYSQLTEST_VARDIR/ddir; | ||
mkdir $table_data_dir; | ||
--replace_result $table_data_dir table_data_dir | ||
EVAL CREATE TABLE t(a INT) ENGINE=InnoDB DATA DIRECTORY='$table_data_dir'; | ||
INSERT INTO t VALUES(1); | ||
echo # xtrabackup backup; | ||
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup; | ||
--disable_result_log | ||
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir; | ||
--enable_result_log | ||
--source include/shutdown_mysqld.inc | ||
echo # xtrabackup prepare; | ||
--disable_result_log | ||
exec $XTRABACKUP --prepare --target-dir=$targetdir; | ||
--source include/start_mysqld.inc | ||
DROP TABLE t; | ||
rmdir $table_data_dir; | ||
-- source include/restart_and_restore.inc | ||
--enable_result_log | ||
SELECT * FROM t; | ||
DROP TABLE t; | ||
rmdir $targetdir; | ||
rmdir $table_data_dir; |
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 @@ | ||
--partition |
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,22 @@ | ||
CREATE TABLE t(i int) | ||
ENGINE=InnoDB | ||
PARTITION BY RANGE (i) | ||
(PARTITION p0 VALUES LESS THAN (100), | ||
PARTITION P1 VALUES LESS THAN (200), | ||
PARTITION p2 VALUES LESS THAN (300) DATA DIRECTORY = 'MYSQLTEST_VARDIR/partitdata', | ||
PARTITION p3 VALUES LESS THAN (400) DATA DIRECTORY = 'MYSQLTEST_VARDIR/partitdata', | ||
PARTITION p4 VALUES LESS THAN MAXVALUE); | ||
INSERT INTO t VALUES (1), (101), (201), (301), (401); | ||
DROP TABLE t; | ||
# shutdown server | ||
# remove datadir | ||
# xtrabackup move back | ||
# restart server | ||
SELECT * FROM t; | ||
i | ||
1 | ||
101 | ||
201 | ||
301 | ||
401 | ||
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,24 @@ | ||
let $targetdir=$MYSQLTEST_VARDIR/backup; | ||
mkdir $targetdir; | ||
mkdir $MYSQLTEST_VARDIR/partitdata; | ||
|
||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR | ||
eval CREATE TABLE t(i int) | ||
ENGINE=InnoDB | ||
PARTITION BY RANGE (i) | ||
(PARTITION p0 VALUES LESS THAN (100), | ||
PARTITION P1 VALUES LESS THAN (200), | ||
PARTITION p2 VALUES LESS THAN (300) DATA DIRECTORY = '$MYSQLTEST_VARDIR/partitdata', | ||
PARTITION p3 VALUES LESS THAN (400) DATA DIRECTORY = '$MYSQLTEST_VARDIR/partitdata', | ||
PARTITION p4 VALUES LESS THAN MAXVALUE); | ||
INSERT INTO t VALUES (1), (101), (201), (301), (401); | ||
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir; | ||
exec $XTRABACKUP --prepare --target-dir=$targetdir; | ||
DROP TABLE t; | ||
rmdir $MYSQLTEST_VARDIR/partitdata; | ||
--source include/restart_and_restore.inc | ||
--enable_result_log | ||
SELECT * FROM t; | ||
DROP TABLE t; | ||
rmdir $targetdir; | ||
rmdir $MYSQLTEST_VARDIR/partitdata; |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
source include/not_embedded.inc; | ||
|
||
# MDEV-10728 | ||
--exec $MYSQL --default-character-set=binary < "t/delimiter_case_mdev_10728.sql" |
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
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