diff options
-rw-r--r-- | storage/innobase/log/log0crypt.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/log/log0crypt.cc b/storage/innobase/log/log0crypt.cc index 8bdd463df65..8a7714101ba 100644 --- a/storage/innobase/log/log0crypt.cc +++ b/storage/innobase/log/log0crypt.cc @@ -577,7 +577,7 @@ ATTRIBUTE_NOINLINE void mtr_t::encrypt() m_log.for_each_block([&](mtr_buf_t::block_t *b) { - ut_ad(t + b->used() <= tmp + srv_page_size); + ut_ad(t - tmp + size <= srv_page_size); byte *buf= b->begin(); if (!start) { |