mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
InnoDB/XtraDB Encryption cleanup.
Step 1: -- Remove page encryption from dictionary (per table encryption will be handled by storing crypt_data to page 0) -- Remove encryption/compression from os0file and all functions before that (compression will be added to buf0buf.cc) -- Use same CRYPT_SCHEME_1 for all encryption methods -- Do some code cleanups to confort InnoDB coding style
This commit is contained in:
parent
47c344b00f
commit
b4a4d82396
64 changed files with 2450 additions and 3957 deletions
|
|
@ -220,17 +220,6 @@ pfs_os_aio_func(
|
|||
operation for this page and if
|
||||
initialized we do not trim again if
|
||||
actual page size does not decrease. */
|
||||
ibool page_compression, /*!< in: is page compression used
|
||||
on this file space */
|
||||
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, /*!< in: page encryption
|
||||
key to be used */
|
||||
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,9 +235,7 @@ pfs_os_aio_func(
|
|||
src_file, src_line);
|
||||
|
||||
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, encrypt_later);
|
||||
n, message1, message2, write_size);
|
||||
|
||||
register_pfs_file_io_end(locker, n);
|
||||
|
||||
|
|
@ -269,8 +256,6 @@ pfs_os_file_read_func(
|
|||
void* buf, /*!< in: buffer where to read */
|
||||
os_offset_t offset, /*!< in: file offset where to read */
|
||||
ulint n, /*!< in: number of bytes to read */
|
||||
ibool compressed, /*!< in: is this file space
|
||||
compressed ? */
|
||||
const char* src_file,/*!< in: file name where func invoked */
|
||||
ulint src_line)/*!< in: line where the func invoked */
|
||||
{
|
||||
|
|
@ -281,7 +266,7 @@ pfs_os_file_read_func(
|
|||
register_pfs_file_io_begin(&state, locker, file, n, PSI_FILE_READ,
|
||||
src_file, src_line);
|
||||
|
||||
result = os_file_read_func(file, buf, offset, n, compressed);
|
||||
result = os_file_read_func(file, buf, offset, n);
|
||||
|
||||
register_pfs_file_io_end(locker, n);
|
||||
|
||||
|
|
@ -304,8 +289,6 @@ pfs_os_file_read_no_error_handling_func(
|
|||
void* buf, /*!< in: buffer where to read */
|
||||
os_offset_t offset, /*!< in: file offset where to read */
|
||||
ulint n, /*!< in: number of bytes to read */
|
||||
ibool compressed, /*!< in: is this file space
|
||||
compressed ? */
|
||||
const char* src_file,/*!< in: file name where func invoked */
|
||||
ulint src_line)/*!< in: line where the func invoked */
|
||||
{
|
||||
|
|
@ -316,7 +299,7 @@ pfs_os_file_read_no_error_handling_func(
|
|||
register_pfs_file_io_begin(&state, locker, file, n, PSI_FILE_READ,
|
||||
src_file, src_line);
|
||||
|
||||
result = os_file_read_no_error_handling_func(file, buf, offset, n, compressed);
|
||||
result = os_file_read_no_error_handling_func(file, buf, offset, n);
|
||||
|
||||
register_pfs_file_io_end(locker, n);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue