MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / readCheckpoint

Method readCheckpoint

src/storage/checkpointer.cpp:411–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411void Checkpointer::readCheckpoint() {
412 // IMPORTANT: Use the main database's storage manager, NOT StorageManager::Get() which
413 // returns the graph's storage manager if a default graph exists!
414 auto storageManager = clientContext.getDatabase()->getStorageManager();
415 storageManager->initDataFileHandle(common::VirtualFileSystem::GetUnsafe(clientContext),
416 &clientContext);
417 if (!isInMemory && storageManager->getDataFH()->getNumPages() > 0) {
418 readCheckpoint(&clientContext, clientContext.getDatabase()->getCatalog(), storageManager);
419 }
420 extension::ExtensionManager::Get(clientContext)->autoLoadLinkedExtensions(&clientContext);
421}
422
423void Checkpointer::readCheckpoint(main::ClientContext* context, catalog::Catalog* catalog,
424 StorageManager* storageManager) {

Callers 3

replayMethod · 0.80
replayFrozenWALMethod · 0.80
replayActiveWALMethod · 0.80

Calls 14

initDataFileHandleMethod · 0.80
getCatalogMethod · 0.80
resetReadOffsetMethod · 0.80
getReaderMethod · 0.80
getPageManagerMethod · 0.80
setDatabaseHeaderMethod · 0.80
getStorageManagerMethod · 0.45
getDatabaseMethod · 0.45
getNumPagesMethod · 0.45
getDataFHMethod · 0.45

Tested by

no test coverage detected