mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
MDEV-23183 Infinite loop on page_validate() on corrupted page
MDEV-22721 (commit eba2d10ac5
)
inadvertently introduced an infinite loop.
page_validate(): Remove the infinite loop.
This commit is contained in:
parent
9c8420fe8c
commit
38b4c07833
1 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
|
||||
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
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
|
@ -2442,7 +2442,9 @@ func_exit2:
|
|||
ib::error() << "Apparent corruption in space "
|
||||
<< page_get_space_id(page) << " page "
|
||||
<< page_get_page_no(page) << " index " << index->name;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (page_is_comp(page)) {
|
||||
if (UNIV_UNLIKELY(!page_simple_validate_new(page))) {
|
||||
goto func_exit2;
|
||||
|
|
Loading…
Reference in a new issue