| 409 | } |
| 410 | |
| 411 | void 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 | |
| 423 | void Checkpointer::readCheckpoint(main::ClientContext* context, catalog::Catalog* catalog, |
| 424 | StorageManager* storageManager) { |
no test coverage detected