diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-04-02 19:34:34 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-04-03 08:50:46 +0300 |
commit | 0870b75af7d01f2e8132278aeb0873dd6c65d1be (patch) | |
tree | 5e17854a45321d51b1ff197e84cc06559f5eb089 /storage/innobase/fil | |
parent | 406ca20b490f034240c234fc5841d32dcb17a1dc (diff) | |
download | mariadb-git-0870b75af7d01f2e8132278aeb0873dd6c65d1be.tar.gz |
MDEV-22126 Rename confusing constant mtr_t::OPT
The template parameter mtr_t::OPT refers to optional, not optimized.
Also the default parameter mtr_t::NORMAL refers to optimized writes.
The name MAYBE_NOP would be more descriptive, conveying the idea
that a write to a durable page might not actually have any effect.
Diffstat (limited to 'storage/innobase/fil')
-rw-r--r-- | storage/innobase/fil/fil0crypt.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/fil/fil0crypt.cc b/storage/innobase/fil/fil0crypt.cc index 99398dc9f0b..fa643e88a68 100644 --- a/storage/innobase/fil/fil0crypt.cc +++ b/storage/innobase/fil/fil0crypt.cc @@ -409,7 +409,7 @@ void fil_space_crypt_t::write_page0(buf_block_t* block, mtr_t* mtr) + fsp_header_get_encryption_offset(block->zip_size()); byte* b = block->frame + offset; - mtr->memcpy<mtr_t::OPT>(*block, b, CRYPT_MAGIC, MAGIC_SZ); + mtr->memcpy<mtr_t::MAYBE_NOP>(*block, b, CRYPT_MAGIC, MAGIC_SZ); b += MAGIC_SZ; byte* const start = b; |