| 1 |
call mtr.add_suppression("InnoDB: New log files created"); |
| 2 |
# |
| 3 |
# Start of 10.3 tests |
| 4 |
# |
| 5 |
# |
| 6 |
# MDEV-23335 MariaBackup Incremental Does Not Reflect Dropped/Created Databases |
| 7 |
# |
| 8 |
CREATE DATABASE db1; |
| 9 |
CREATE DATABASE db2; |
| 10 |
CREATE TABLE db1.t1 (a INT) ENGINE=MyISAM; |
| 11 |
CREATE TABLE db1.t2 (a INT) ENGINE=InnoDB; |
| 12 |
# Create base backup |
| 13 |
DROP DATABASE db1; |
| 14 |
# Create incremental backup |
| 15 |
# Remove incremental_dir/db2/db.opt file to make incremental_dir/db2/ empty |
| 16 |
# Prepare base backup, apply incremental one |
| 17 |
# shutdown server |
| 18 |
# remove datadir |
| 19 |
# xtrabackup move back |
| 20 |
# restart |
| 21 |
# Expect no 'db1' in the output, because it was really dropped. |
| 22 |
# Expect 'db2' in the ouput, because it was not dropped! |
| 23 |
# (its incremental directory was emptied only) |
| 24 |
SHOW DATABASES LIKE 'db%'; |
| 25 |
Database (db%) |
| 26 |
db2 |
| 27 |
DROP DATABASE db2; |
| 28 |
# |
| 29 |
# End of 10.3 tests |
| 30 |
# |