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

Method copyKnownPages

src/jrd/Database.cpp:551–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549 }
550
551 void Database::copyKnownPages(SCHAR ptype, ULONG count, ULONG* data)
552 {
553 fb_assert(ptype == pag_transactions || ptype == pag_ids);
554
555 SyncLockGuard guard(&dbb_pages_sync, SYNC_EXCLUSIVE, FB_FUNCTION);
556
557 auto& rvector = (ptype == pag_transactions) ? dbb_tip_pages : dbb_gen_pages;
558
559 rvector = vcl::newVector(*dbb_permanent, rvector, count);
560
561 memcpy(rvector->memPtr(), data, count * sizeof(ULONG));
562 }
563
564 // Database::Linger class implementation
565

Callers

nothing calls this directly

Calls 1

memPtrMethod · 0.80

Tested by

no test coverage detected