Pass down the information should we encrypt the page at os0file.cc

when page compression and google encryption is used.
This commit is contained in:
Jan Lindström 2015-01-09 12:30:59 +02:00 committed by Sergei Golubchik
commit e2e809860e
28 changed files with 425 additions and 249 deletions

View file

@ -222,13 +222,15 @@ pfs_os_aio_func(
actual page size does not decrease. */
ibool page_compression, /*!< in: is page compression used
on this file space */
ulint page_compression_level, /*!< page compression
ulint page_compression_level, /*!< in: page compression
level to be used */
ibool page_encryption, /*!< in: is page encryption used
on this file space */
ulint page_encryption_key, /*!< page encryption
ulint page_encryption_key, /*!< in: page encryption
key to be used */
lsn_t lsn, /* lsn of the newest modification */
lsn_t lsn, /*!< in: lsn of the newest
modification */
bool encrypt_later, /*!< in: encrypt later ? */
const char* src_file,/*!< in: file name where func invoked */
ulint src_line)/*!< in: line where the func invoked */
{
@ -246,7 +248,7 @@ pfs_os_aio_func(
result = os_aio_func(type, mode, name, file, buf, offset,
n, message1, message2, write_size,
page_compression, page_compression_level,
page_encryption, page_encryption_key, lsn);
page_encryption, page_encryption_key, lsn, encrypt_later);
register_pfs_file_io_end(locker, n);