mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
MDEV-19347: Mariabackup does not honor ignore_db_dirs from server
config. The solution is to read the system variable value on startup and to fill databases_exclude_hash. xb_load_list_string() became non-static and was reformatted. The system variable value is read and processed in get_mysql_vars(), which was also reformatted.
This commit is contained in:
parent
36bddacf6b
commit
0efe1971c6
6 changed files with 231 additions and 177 deletions
|
|
@ -1,6 +1,13 @@
|
|||
#--source include/innodb_page_size.inc
|
||||
|
||||
# Test --databases-exclude and --tables-exclude feature of xtrabackup 2.3.8
|
||||
select @@ignore_db_dirs;
|
||||
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
|
||||
mkdir $MYSQLD_DATADIR/db3;
|
||||
mkdir $MYSQLD_DATADIR/db4;
|
||||
mkdir $MYSQLD_DATADIR/db5;
|
||||
|
||||
CREATE TABLE t1(i INT) ENGINE INNODB;
|
||||
INSERT INTO t1 VALUES(1);
|
||||
|
|
@ -24,8 +31,19 @@ list_files $targetdir/test *.ibd;
|
|||
# check that db2 database is not in the backup (excluded)
|
||||
--error 1
|
||||
list_files $targetdir/db2 *.ibd;
|
||||
# check that db3 database is not in the backup (excluded)
|
||||
--error 1
|
||||
list_files $targetdir/db3 *.ibd;
|
||||
# check that db4 database is not in the backup (excluded)
|
||||
--error 1
|
||||
list_files $targetdir/db4 *.ibd;
|
||||
# check that db5 database is in the backup
|
||||
list_files $targetdir/db5 *.ibd;
|
||||
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
DROP DATABASE db2;
|
||||
rmdir $MYSQLD_DATADIR/db3;
|
||||
rmdir $MYSQLD_DATADIR/db4;
|
||||
rmdir $MYSQLD_DATADIR/db5;
|
||||
rmdir $targetdir;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue