| 84 | } |
| 85 | |
| 86 | PageRange Checkpointer::serializeCatalog(const catalog::Catalog& catalog, |
| 87 | StorageManager& storageManager) { |
| 88 | auto catalogWriter = |
| 89 | std::make_shared<common::InMemFileWriter>(*MemoryManager::Get(clientContext)); |
| 90 | common::Serializer catalogSerializer(catalogWriter); |
| 91 | catalog.serialize(catalogSerializer); |
| 92 | auto pageAllocator = storageManager.getDataFH()->getPageManager(); |
| 93 | return catalogWriter->flush(*pageAllocator, storageManager.getShadowFile()); |
| 94 | } |
| 95 | |
| 96 | PageRange Checkpointer::serializeCatalogSnapshot(const catalog::Catalog& catalog, |
| 97 | StorageManager& storageManager) { |
nothing calls this directly
no test coverage detected