diff options
author | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2019-06-28 18:49:43 +0530 |
---|---|---|
committer | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2019-06-28 18:58:52 +0530 |
commit | e4a0dbfb4aa77a9d41039f5cd7144d98a6b9baed (patch) | |
tree | d2c2344720e5b47345b0aecf642165ec17954f76 /mysql-test/suite/encryption | |
parent | f7a4a8719bd59eca27e3e5e467c138853aa63dd5 (diff) | |
download | mariadb-git-e4a0dbfb4aa77a9d41039f5cd7144d98a6b9baed.tar.gz |
MDEV-19781 Add page id matching check in innochecksum tool
Added the condition in innochecksum tool to check page id mismatch.
This could catch the write corruption caused by InnoDB.
Added the debug insert inside fil_io() to check whether it writes
the page to wrong offset.
Diffstat (limited to 'mysql-test/suite/encryption')
-rw-r--r-- | mysql-test/suite/encryption/r/innochecksum.result | 2 | ||||
-rw-r--r-- | mysql-test/suite/encryption/t/innochecksum.test | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mysql-test/suite/encryption/r/innochecksum.result b/mysql-test/suite/encryption/r/innochecksum.result index 6ea54f3d053..2c1279cd232 100644 --- a/mysql-test/suite/encryption/r/innochecksum.result +++ b/mysql-test/suite/encryption/r/innochecksum.result @@ -33,7 +33,7 @@ CREATE TABLE t6 (a INT AUTO_INCREMENT PRIMARY KEY, b TEXT) ENGINE=InnoDB; # Run innochecksum on t2 # Run innochecksum on t3 # Run innochecksum on t6 -# no encryption corrupting the field should not have effect +# Space ID mismatch # Restore the original tables # Corrupt FIL_DATA+10 (data) # Run innochecksum on t2 diff --git a/mysql-test/suite/encryption/t/innochecksum.test b/mysql-test/suite/encryption/t/innochecksum.test index f1c1b65d418..47da8525130 100644 --- a/mysql-test/suite/encryption/t/innochecksum.test +++ b/mysql-test/suite/encryption/t/innochecksum.test @@ -206,7 +206,8 @@ EOF --exec $INNOCHECKSUM $t3_IBD --echo # Run innochecksum on t6 ---echo # no encryption corrupting the field should not have effect +--echo # Space ID mismatch +--error 1 --exec $INNOCHECKSUM $t6_IBD --enable_result_log |