diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-11-06 14:29:09 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-11-09 23:35:21 +0100 |
commit | a0536d4253ff096b82ab1da01471784b4ab3b253 (patch) | |
tree | f12b69751cac51b8c3a2c77c60a4f34621075fa6 /sql/sql_prepare.cc | |
parent | 1f18e0c70e3602710c6cb3bef05e7a3ab80573d1 (diff) | |
download | mariadb-git-a0536d4253ff096b82ab1da01471784b4ab3b253.tar.gz |
MDEV-24096 InnoDB assertion 'first_free <= srv_page_size - 8'
MDEV-23672 (commit 7eda55619654b76add275695e0a6039e60876e81)
introduced a regression that can corrupt not only undo log pages,
but anything that resides in the InnoDB buffer pool.
trx_undo_left(): Add debug assertions for the assumptions.
If the pointer is out of bounds, we will return a positive
number, not a negative one. Thus, once a page overflow occurs,
further overflow to adjacent pages will be allowed.
This allows us to remove some more relaxed debug assertions
from some callers.
trx_undo_log_v_idx(): Correctly calculate the size limit.
Diffstat (limited to 'sql/sql_prepare.cc')
0 files changed, 0 insertions, 0 deletions