8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

Merge pull request #7741 from TreeHunter9/master_wrong_assert_thrown

Fix wrong assert throw on validation
This commit is contained in:
Vlad Khorsun 2023-09-07 13:10:59 +03:00 committed by GitHub
commit fb0c6070c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1026,7 +1026,10 @@ void CCH_fetch_page(thread_db* tdbb, WIN* window, const bool read_shadow)
}
}
fb_assert(bdb->bdb_page == window->win_page);
fb_assert(bdb->bdb_buffer->pag_pageno == window->win_page.getPageNum());
fb_assert(bdb->bdb_buffer->pag_pageno == window->win_page.getPageNum() ||
bdb->bdb_buffer->pag_type == pag_undefined &&
bdb->bdb_buffer->pag_generation == 0 &&
bdb->bdb_buffer->pag_scn == 0);
}
else
{