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

Method setKnownPage

src/jrd/Database.cpp:538–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

TRA_extend_tipFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected