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

Respect large scans in new code path

This commit is contained in:
hvlad 2016-11-08 12:17:14 +02:00
parent 8d5b1ff46e
commit 1ca870b88c

View File

@ -1676,7 +1676,16 @@ bool DPM_next(thread_db* tdbb, record_param* rpb, USHORT lock_type, bool onepage
}
}
CCH_RELEASE(tdbb, window);
if (window->win_flags & WIN_large_scan)
CCH_RELEASE_TAIL(tdbb, window);
else if (window->win_flags & WIN_garbage_collector &&
window->win_flags & WIN_garbage_collect)
{
CCH_RELEASE_TAIL(tdbb, window);
window->win_flags &= ~WIN_garbage_collect;
}
else
CCH_RELEASE(tdbb, window);
}
// Find the next pointer page, data page, and record