MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getPageIndex

Method getPageIndex

src/jrd/nbak.cpp:724–739  ·  view source on GitHub ↗

Return page index in difference file that can be used in writeDifference call later.

Source from the content-addressed store, hash-verified

722// Return page index in difference file that can be used in
723// writeDifference call later.
724ULONG BackupManager::getPageIndex(thread_db* tdbb, ULONG db_page)
725{
726 NBAK_TRACE(("get_page_index"));
727
728 {
729 LocalAllocReadGuard localAllocGuard(this);
730
731 const ULONG diff_page = findPageIndex(tdbb, db_page);
732 if (diff_page || backup_state == Ods::hdr_nbak_merge && allocIsValid)
733 return diff_page;
734 }
735
736 LocalAllocWriteGuard localAllocGuard(this);
737 GlobalAllocReadGuard globalAllocGuard(tdbb, this);
738 return findPageIndex(tdbb, db_page);
739}
740
741// Mark next difference page as used by some database page
742ULONG BackupManager::allocateDifferencePage(thread_db* tdbb, ULONG db_page)

Callers 3

PhysHdrMethod · 0.80
CCH_fetch_pageFunction · 0.80
set_diff_pageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected