mirror of
https://github.com/MariaDB/server.git
synced 2025-11-25 17:25:02 +03:00
buf_page_is_checksum_valid_crc32() buf_page_is_checksum_valid_innodb() buf_page_is_checksum_valid_none(): Use ULINTPF instead of %lu and %u for ib_uint32_t fil_space_verify_crypt_checksum(): Check that page is really empty if checksum and LSN are zero. fil_space_verify_crypt_checksum(): Correct the comment to be more agurate. buf0buf.h: Remove unnecessary is_corrupt variable from buf_page_t structure.
18 lines
647 B
Plaintext
18 lines
647 B
Plaintext
CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b TEXT) ROW_FORMAT=COMPACT ENGINE=InnoDB;
|
|
INSERT INTO t1 (b) VALUES ('corrupt me');
|
|
INSERT INTO t1 (b) VALUES ('corrupt me');
|
|
# Backup the t1.ibd before corrupting
|
|
# Corrupt the table
|
|
Munged a string.
|
|
Munged a string.
|
|
SET DEBUG_DBUG = '+d,innodb_page_corruption_retries';
|
|
# Write file to make mysql-test-run.pl expect the "crash", but don't
|
|
# start it until it's told to
|
|
# The below SELECT query will crash the server because some pages
|
|
# on the disk are corrupted
|
|
SELECT * FROM t1;
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
# Restore the original t1.ibd
|
|
# Cleanup
|
|
DROP TABLE t1;
|