diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-06-05 08:41:10 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-06-09 11:35:21 +0300 |
commit | d7f3d889de2a4f2a828de288175e7095bc838b6b (patch) | |
tree | bf0906c5987f805065ea5b8eca33703e22801809 /storage/innobase/include/buf0buf.h | |
parent | f744b2a15ff3a8e2b93ae4f17ffe5a22af9bcd88 (diff) | |
download | mariadb-git-d7f3d889de2a4f2a828de288175e7095bc838b6b.tar.gz |
MDEV-8272: Encryption performance: Reduce the number of unused memcpy's
Removed memcpy's on cases when page is not encrypted and make sure
we use the correct buffer for reading/writing.
Diffstat (limited to 'storage/innobase/include/buf0buf.h')
-rw-r--r-- | storage/innobase/include/buf0buf.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h index 4ade85b0975..dda70a5cbe9 100644 --- a/storage/innobase/include/buf0buf.h +++ b/storage/innobase/include/buf0buf.h @@ -1449,9 +1449,9 @@ UNIV_INTERN byte* buf_page_encrypt_before_write( /*==========================*/ - buf_page_t* page, /*!< in/out: buffer page to be flushed */ - const byte* frame, - ulint space_id); + buf_page_t* page, /*!< in/out: buffer page to be flushed */ + byte* frame, /*!< in: src frame */ + ulint space_id); /*!< in: space id */ /********************************************************************** The hook that is called after page is written to disk. |