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

Fixed bug CORE-5935 : Bugcheck 165 (cannot find tip page)

This commit is contained in:
hvlad 2018-10-05 00:23:55 +03:00
parent cff6cf566d
commit d4d5a9633c

View File

@ -506,6 +506,9 @@ TraNumber TipCache::cacheTransactions(thread_db* tdbb, TraNumber oldest)
CCH_RELEASE(tdbb, &window);
#endif
// Don't try to ask for non-existing TIP page
oldest = MIN(oldest, top);
// hvlad: No need to cache TIP pages below hdr_oldest just refreshed from
// header page. Moreover our tip cache can now contain a gap between the last
// cached tip page and new pages if our process was idle for long time