mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 07:23:03 +01:00
Backport fix for bug CORE-2684 : Error page NNN is of wrong type (expected 7, found N)
This commit is contained in:
parent
db03f406d3
commit
2c59722bc7
@ -5054,7 +5054,18 @@ static contents garbage_collect(thread_db* tdbb, WIN* window, SLONG parent_numbe
|
||||
// going to the right until we find the page that is our real
|
||||
// left sibling
|
||||
WIN left_window(pageSpaceID, left_number);
|
||||
btree_page* left_page = (btree_page*) CCH_FETCH(tdbb, &left_window, LCK_write, pag_index);
|
||||
btree_page* left_page = (btree_page*) CCH_FETCH(tdbb, &left_window, LCK_write, pag_undefined);
|
||||
if ((left_page->btr_header.pag_type != pag_index) ||
|
||||
(left_page->btr_relation != relation_number) ||
|
||||
(left_page->btr_id != (UCHAR)(index_id % 256)) ||
|
||||
(left_page->btr_level != index_level))
|
||||
{
|
||||
CCH_RELEASE(tdbb, &parent_window);
|
||||
CCH_RELEASE(tdbb, &left_window);
|
||||
return contents_above_threshold;
|
||||
}
|
||||
|
||||
|
||||
while (left_page->btr_sibling != window->win_page.getPageNum())
|
||||
{
|
||||
#ifdef DEBUG_BTR
|
||||
|
Loading…
Reference in New Issue
Block a user