diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2017-04-21 17:32:02 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-04-21 17:47:23 +0300 |
commit | 996c7d5cb5e369de178da3482f3dfc36d57fd6a9 (patch) | |
tree | 499e295f2815eeb5e4222db6093f37046bc58f83 /storage/innobase/include/buf0buf.h | |
parent | 555e52f3bc8d67d0cfe176d25e2fe0c73fdb2fd2 (diff) | |
download | mariadb-git-996c7d5cb5e369de178da3482f3dfc36d57fd6a9.tar.gz |
MDEV-12545 Reduce the amount of fil_space_t lookups
buf_flush_write_block_low(): Acquire the tablespace reference once,
and pass it to lower-level functions. This is only a start; further
calls may be removed later.
Diffstat (limited to 'storage/innobase/include/buf0buf.h')
-rw-r--r-- | storage/innobase/include/buf0buf.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h index 643e8c731e5..b4d39351370 100644 --- a/storage/innobase/include/buf0buf.h +++ b/storage/innobase/include/buf0buf.h @@ -1502,17 +1502,19 @@ buf_flush_update_zip_checksum( #endif /* !UNIV_HOTBACKUP */ -/********************************************************************//** -The hook that is called just before a page is written to disk. -The function encrypts the content of the page and returns a pointer -to a frame that will be written instead of the real frame. */ +/** Encryption and page_compression hook that is called just before +a page is written to disk. +@param[in,out] space tablespace +@param[in,out] bpage buffer page +@param[in] src_frame physical page frame that is being encrypted +@return page frame to be written to file +(may be src_frame or an encrypted/compressed copy of it) */ UNIV_INTERN byte* buf_page_encrypt_before_write( -/*==========================*/ - buf_page_t* page, /*!< in/out: buffer page to be flushed */ - byte* frame, /*!< in: src frame */ - ulint space_id); /*!< in: space id */ + fil_space_t* space, + buf_page_t* bpage, + byte* src_frame); /********************************************************************** The hook that is called after page is written to disk. |