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

Method serializeCatalog

src/storage/checkpointer.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86PageRange 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
96PageRange Checkpointer::serializeCatalogSnapshot(const catalog::Catalog& catalog,
97 StorageManager& storageManager) {

Callers

nothing calls this directly

Calls 4

getPageManagerMethod · 0.80
serializeMethod · 0.45
getDataFHMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected