mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
171271edf8
Problem: ======= Mariabackup seems to fail to verify the pages of compressed tables. The reason is that both fil_space_verify_crypt_checksum() and buf_page_is_corrupted() will skip the validation for compressed pages. Fix: ==== Mariabackup should call fil_page_decompress() for compressed and encrypted compressed page. After that, call buf_page_is_corrupted() to check the page corruption.
6 lines
273 B
Text
6 lines
273 B
Text
CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b TEXT, c char(200)) ENGINE=InnoDB page_compressed=yes;
|
|
insert into t1(b, c) values("mariadb", "mariabackup");
|
|
# Corrupt the table
|
|
# xtrabackup backup
|
|
FOUND /Database page corruption detected/ in backup.log
|
|
drop table t1;
|