8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:03:02 +01:00

Fixed bug CORE-5415 : [security3.fdb] wrong page type page 22 is of wrong type (expected pointer, found index root)

This commit is contained in:
hvlad 2017-03-21 13:04:48 +02:00
parent 36509e5276
commit 2cda03212a

View File

@ -248,8 +248,8 @@ void TRA_cleanup(thread_db* tdbb)
tx_inv_page* tip = (tx_inv_page*) CCH_FETCH(tdbb, &window, LCK_write, pag_transactions);
TraNumber max = ceiling - (TraNumber) sequence * trans_per_tip;
if (max > trans_per_tip)
max = trans_per_tip - 1;
for (; number <= max; number++)
max = trans_per_tip;
for (; number < max; number++)
{
const ULONG trans_offset = TRANS_OFFSET(number);
UCHAR* byte = tip->tip_transactions + trans_offset;