mariadb/storage/innobase/buf
Jan Lindström f7002c05ae MDEV-8250: InnoDB: Page compressed tables are not compressed and compressed+encrypted tables cause crash
Analysis: Problem is that both encrypted tables and compressed tables use
FIL header offset FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION to store
required metadata. Furhermore, for only compressed tables currently
code skips compression.

Fixes:
- Only encrypted pages store key_version to FIL header offset FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION,
  no need to fix
- Only compressed pages store compression algorithm to FIL header offset FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION,
  no need to fix as they have different page type FIL_PAGE_PAGE_COMPRESSED
- Compressed and encrypted pages now use a new page type FIL_PAGE_PAGE_COMPRESSED_ENCRYPTED and
  key_version is stored on FIL header offset FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION and compression
  method is stored after FIL header similar way as compressed size, so that first
  FIL_PAGE_COMPRESSED_SIZE is stored followed by FIL_PAGE_COMPRESSION_METHOD
- Fix buf_page_encrypt_before_write function to really compress pages if compression is enabled
- Fix buf_page_decrypt_after_read function to really decompress pages if compression is used
- Small style fixes
2015-06-04 09:47:06 +03:00
..
buf0buddy.cc innodb 5.6.17 2014-05-07 17:32:23 +02:00
buf0buf.cc MDEV-8250: InnoDB: Page compressed tables are not compressed and compressed+encrypted tables cause crash 2015-06-04 09:47:06 +03:00
buf0checksum.cc Push for testing of encryption 2015-02-10 10:21:17 +01:00
buf0dblwr.cc MDEV-8233: InnoDB: Assertion failure in fil_page_decompress with encrypted tables 2015-05-27 15:34:10 +03:00
buf0dump.cc Fix compiler warning. 2015-05-31 07:53:20 +03:00
buf0flu.cc InnoDB/XtraDB Encryption cleanup 2015-04-07 23:44:56 +02:00
buf0lru.cc Merge branch '10.0' into bb-10.1-merge 2014-12-02 22:25:16 +01:00
buf0mtflu.cc MDEV-7424: InnoDB: Assertion failure in thread 139901753345792 2015-01-14 19:24:37 +02:00
buf0rea.cc InnoDB/XtraDB Encryption cleanup 2015-04-07 23:44:56 +02:00