| 536 | } |
| 537 | |
| 538 | void Database::setKnownPage(SCHAR ptype, ULONG sequence, ULONG value) |
| 539 | { |
| 540 | fb_assert(ptype == pag_transactions || ptype == pag_ids); |
| 541 | |
| 542 | SyncLockGuard guard(&dbb_pages_sync, SYNC_EXCLUSIVE, FB_FUNCTION); |
| 543 | |
| 544 | auto& rvector = (ptype == pag_transactions) ? dbb_tip_pages : dbb_gen_pages; |
| 545 | |
| 546 | rvector = vcl::newVector(*dbb_permanent, rvector, sequence + 1); |
| 547 | |
| 548 | (*rvector)[sequence] = value; |
| 549 | } |
| 550 | |
| 551 | void Database::copyKnownPages(SCHAR ptype, ULONG count, ULONG* data) |
| 552 | { |