mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
704c74cd99
- Changed the page0 perl corruption code in test case to avoid the bogus error in windows
27 lines
791 B
Text
27 lines
791 B
Text
call mtr.add_suppression("InnoDB: Expected tablespace id .*");
|
|
# Mariabackup --backup with page0 INIT_PAGE redo record
|
|
# and there is no FILE_CREATE for the tablespace t1
|
|
SET @save_dbug = @@SESSION.debug_dbug;
|
|
SET DEBUG_DBUG="+d,checkpoint_after_file_create";
|
|
CREATE TABLE t1(f1 INT NOT NULL)ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES(1);
|
|
# xtrabackup backup
|
|
# xtrabackup prepare
|
|
# shutdown server
|
|
# remove datadir
|
|
# xtrabackup move back
|
|
# restart
|
|
SELECT * FROM t1;
|
|
f1
|
|
1
|
|
DROP TABLE t1;
|
|
SET @@SESSION.DEBUG_DBUG= @save_debug;
|
|
# Mariabackup fails after corrupting the page0 in disk
|
|
# and there is no INIT_PAGE for page0
|
|
CREATE TABLE t1(c INT) ENGINE=INNODB;
|
|
# Corrupt the table
|
|
# restart
|
|
# xtrabackup backup
|
|
FOUND 10 /Header page consists of zero bytes*/ in backup.log
|
|
UNLOCK TABLES;
|
|
DROP TABLE t1;
|