| 706 | } |
| 707 | |
| 708 | ULONG 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. |