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

Method findPageIndex

src/jrd/nbak.cpp:708–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708ULONG BackupManager::findPageIndex(thread_db* tdbb, ULONG db_page)
709{
710 // localAllocLock must be already locked here
711
712 NBAK_TRACE(("find_page_index"));
713 if (!alloc_table)
714 return 0;
715
716 AllocItemTree::Accessor a(alloc_table);
717 ULONG diff_page = a.locate(db_page) ? a.current().diff_page : 0;
718
719 return diff_page;
720}
721
722// Return page index in difference file that can be used in
723// writeDifference call later.

Callers

nothing calls this directly

Calls 2

locateMethod · 0.45
currentMethod · 0.45

Tested by

no test coverage detected