| 1 |
CREATE TABLE t(i INT) ENGINE INNODB; |
| 2 |
INSERT INTO t VALUES(1); |
| 3 |
# "innodb_force_recovery=1" should be allowed with "--prepare" only (mariabackup) |
| 4 |
FOUND 1 /should only be used with "--prepare"/ in backup.log |
| 5 |
# "innodb_force_recovery=1" should be allowed with "--apply-log" only (innobackupex) |
| 6 |
FOUND 1 /should only be used with "--apply-log"/ in backup.log |
| 7 |
# "innodb_force_recovery" should be limited to "SRV_FORCE_IGNORE_CORRUPT" (mariabackup) |
| 8 |
FOUND 1 /innodb_force_recovery = 1/ in backup.log |
| 9 |
# "innodb_force_recovery" should be limited to "SRV_FORCE_IGNORE_CORRUPT" (innobackupex) |
| 10 |
FOUND 1 /innodb_force_recovery = 1/ in backup.log |
| 11 |
# |
| 12 |
# This fragment was added for MDEV-31505 Deprecate mariabackup --innobackupex mode |
| 13 |
# |
| 14 |
NOT FOUND /Deprecated program name/ in backup.log |
| 15 |
FOUND 1 /[-][-]innobackupex.*is deprecated and will be removed in a future release/ in backup.log |
| 16 |
# |
| 17 |
# End of the MDEV-31505 fragment |
| 18 |
# |
| 19 |
# "innodb_force_recovery" should be read from "backup-my.cnf" (mariabackup) |
| 20 |
FOUND 1 /innodb_force_recovery = 1/ in backup.log |
| 21 |
# "innodb_force_recovery=1" should be read from "backup-my.cnf" (innobackupex) |
| 22 |
FOUND 1 /innodb_force_recovery = 1/ in backup.log |
| 23 |
# "innodb_force_recovery" from the command line should override "backup-my.cnf" (mariabackup) |
| 24 |
NOT FOUND /innodb_force_recovery = 1/ in backup.log |
| 25 |
# "innodb_force_recovery" from the command line should override "backup-my.cnf" (innobackupex) |
| 26 |
NOT FOUND /innodb_force_recovery = 1/ in backup.log |
| 27 |
# shutdown server |
| 28 |
# remove datadir |
| 29 |
# xtrabackup move back |
| 30 |
# restart |
| 31 |
SELECT * FROM t; |
| 32 |
i |
| 33 |
1 |
| 34 |
DROP TABLE t; |