2017-09-11 16:45:36 +00:00
|
|
|
--source include/have_debug.inc
|
2018-05-29 17:14:34 +03:00
|
|
|
--source include/have_partition.inc
|
2017-09-11 16:45:36 +00:00
|
|
|
|
|
|
|
CREATE TABLE t(i INT) ENGINE INNODB;
|
|
|
|
INSERT INTO t VALUES(1);
|
|
|
|
echo # xtrabackup backup;
|
|
|
|
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
|
|
|
|
|
2017-09-14 16:42:09 +00:00
|
|
|
CREATE TABLE `bobby``tables` (id INT, name VARCHAR(50), purchased DATE) ENGINE INNODB PARTITION BY RANGE( YEAR(purchased) ) (
|
|
|
|
PARTITION p0 VALUES LESS THAN (1990),
|
|
|
|
PARTITION p1 VALUES LESS THAN (1995),
|
|
|
|
PARTITION p2 VALUES LESS THAN (2000),
|
|
|
|
PARTITION p3 VALUES LESS THAN (2005)
|
|
|
|
) ;
|
|
|
|
|
2021-05-17 18:12:33 +03:00
|
|
|
set global innodb_log_checkpoint_now = 1;
|
|
|
|
|
2017-09-11 16:45:36 +00:00
|
|
|
--disable_result_log
|
2023-12-03 14:09:43 +02:00
|
|
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --parallel=10 --target-dir=$targetdir --lock-ddl-per-table=1 --dbug=+d,check_mdl_lock_works;
|
2017-09-11 16:45:36 +00:00
|
|
|
--enable_result_log
|
|
|
|
DROP TABLE t;
|
2017-09-14 16:42:09 +00:00
|
|
|
DROP TABLE `bobby``tables`;
|
2021-05-17 18:12:33 +03:00
|
|
|
rmdir $targetdir;
|