Return page index in difference file that can be used in writeDifference call later.
| 722 | // Return page index in difference file that can be used in |
| 723 | // writeDifference call later. |
| 724 | ULONG 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 |
| 742 | ULONG BackupManager::allocateDifferencePage(thread_db* tdbb, ULONG db_page) |
no outgoing calls
no test coverage detected