Commit 38b4c078 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-23183 Infinite loop on page_validate() on corrupted page

MDEV-22721 (commit eba2d10a)
inadvertently introduced an infinite loop.

page_validate(): Remove the infinite loop.
parent 9c8420fe
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc. Copyright (c) 2012, Facebook Inc.
Copyright (c) 2017, 2019, MariaDB Corporation. Copyright (c) 2017, 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -2442,7 +2442,9 @@ page_validate( ...@@ -2442,7 +2442,9 @@ page_validate(
ib::error() << "Apparent corruption in space " ib::error() << "Apparent corruption in space "
<< page_get_space_id(page) << " page " << page_get_space_id(page) << " page "
<< page_get_page_no(page) << " index " << index->name; << page_get_page_no(page) << " index " << index->name;
return FALSE;
} }
if (page_is_comp(page)) { if (page_is_comp(page)) {
if (UNIV_UNLIKELY(!page_simple_validate_new(page))) { if (UNIV_UNLIKELY(!page_simple_validate_new(page))) {
goto func_exit2; goto func_exit2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment