mariadb/storage/innobase
Jan Lindström 34eef269eb MDEV-11939: innochecksum mistakes a file for an encrypted one (page 0 invalid)
Always read full page 0 to determine does tablespace contain
encryption metadata. Tablespaces that are page compressed or
page compressed and encrypted do not compare checksum as
it does not exists. For encrypted tables use checksum
verification written for encrypted tables and normal tables
use normal method.

buf_page_is_checksum_valid_crc32
buf_page_is_checksum_valid_innodb
buf_page_is_checksum_valid_none
        Modify Innochecksum logging to file to avoid compilation
	warnings.

fil0crypt.cc fil0crypt.h
        Modify to be able to use in innochecksum compilation and
        move fil_space_verify_crypt_checksum to end of the file.
        Add innochecksum logging to file.

univ.i
        Add innochecksum strict_verify, log_file and cur_page_num
        variables as extern.

page_zip_verify_checksum
        Add innochecksum logging to file and remove unnecessary code.

innochecksum.cc
        Lot of changes most notable able to read encryption
        metadata from page 0 of the tablespace.

Added test case where we corrupt intentionally
FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION (encryption key version)
FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION+4 (post encryption checksum)
FIL_DATA+10 (data)
2017-08-08 09:41:09 +03:00
..
btr MDEV-13228: Add a comment that clarifies the constants 2017-07-03 13:13:54 +03:00
buf MDEV-11939: innochecksum mistakes a file for an encrypted one (page 0 invalid) 2017-08-08 09:41:09 +03:00
data InnoDB: Remove dead code for DATA_POINT and DATA_VAR_POINT 2017-07-03 12:17:10 +03:00
dict InnoDB: Remove a redundant condition and an outdated comment 2017-07-06 02:14:33 +03:00
eval MDEV-12271 Port MySQL 8.0 Bug#23150562 REMOVE UNIV_MUST_NOT_INLINE AND UNIV_NONINL 2017-03-17 12:42:07 +02:00
fil MDEV-11939: innochecksum mistakes a file for an encrypted one (page 0 invalid) 2017-08-08 09:41:09 +03:00
fsp MDEV-13105 InnoDB fails to load a table with PAGE_COMPRESSION_LEVEL after upgrade from 10.1.20 2017-07-05 14:55:56 +03:00
fts MDEV-13084 MariaDB 10.2 crashes on corrupted SYS_TABLES.MIX_LEN field 2017-06-14 09:08:04 +03:00
fut MDEV-12270 Port MySQL 8.0 Bug#21141390 REMOVE UNUSED FUNCTIONS AND CONVERT GLOBAL SYMBOLS TO STATIC 2017-03-17 12:48:50 +02:00
gis Minor code cleanup. 2017-04-17 03:20:34 +03:00
ha Bug#24346574 PAGE CLEANER THREAD, ASSERT BLOCK->N_POINTERS == 0 2017-04-26 23:03:27 +03:00
handler MDEV-11937: InnoDB flushes redo log too often 2017-08-07 18:23:55 +02:00
ibuf MDEV-13451 Assertion `!recv_no_ibuf_operations' failed in ibuf_page_low() 2017-08-07 13:50:31 +03:00
include MDEV-11939: innochecksum mistakes a file for an encrypted one (page 0 invalid) 2017-08-08 09:41:09 +03:00
lock Merge 10.1 into 10.2 2017-05-22 09:46:51 +03:00
log MDEV-13452 Assertion `!recv_no_log_write' failed in log_reserve_and_open() 2017-08-07 13:54:37 +03:00
mach Fix Bug#24707869 GCC 5 AND 6 MISCOMPILE MACH_PARSE_COMPRESSED 2017-04-26 23:03:29 +03:00
mem MDEV-12271 Port MySQL 8.0 Bug#23150562 REMOVE UNIV_MUST_NOT_INLINE AND UNIV_NONINL 2017-03-17 12:42:07 +02:00
mtr MDEV-13452 Assertion `!recv_no_log_write' failed in log_reserve_and_open() 2017-08-07 13:54:37 +03:00
mysql-test/storage_engine Adjust storage_engine suite according to server changes in 10.2 2017-06-03 02:47:52 +03:00
os MDEV-12548 Initial implementation of Mariabackup for MariaDB 10.2 2017-07-05 11:43:28 +03:00
page MDEV-11939: innochecksum mistakes a file for an encrypted one (page 0 invalid) 2017-08-08 09:41:09 +03:00
pars Remove unused tokens from the InnoDB SQL parser. 2017-04-17 03:20:34 +03:00
que Fix some printf format type mismatch 2017-06-06 12:04:29 +03:00
read
rem InnoDB: Remove dead code for DATA_POINT and DATA_VAR_POINT 2017-07-03 12:17:10 +03:00
row Merge branch '10.1' into 10.2 2017-07-05 19:08:55 +02:00
srv Avoid a hang when InnoDB startup is aborted during redo log apply 2017-07-05 22:09:28 +03:00
sync Clean up InnoDB shutdown 2017-06-29 23:10:46 +03:00
trx MDEV-11937: InnoDB flushes redo log too often 2017-08-07 18:23:55 +02:00
usr Merge 10.1 into 10.2 2017-05-22 09:46:51 +03:00
ut Remove some noise from ib::fatal() and ib::fatal_or_error() 2017-05-26 22:45:54 +03:00
bzip2.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
CMakeLists.txt MDEV-12548 Initial implementation of Mariabackup for MariaDB 10.2 2017-07-05 11:43:28 +03:00
compile-innodb
COPYING.Google
COPYING.Percona
innodb.cmake MDEV-12924: re-add numa to innodb 2017-05-29 15:32:37 +10:00
lz4.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
lzma.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
lzo.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00
plugin_exports
snappy.cmake cleanup: innodb files in cmake/ 2017-03-29 00:40:22 +02:00