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

Method collectCheckpointTargets

src/storage/checkpointer.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73Checkpointer::~Checkpointer() = default;
74
75std::vector<Checkpointer::CheckpointTarget> Checkpointer::collectCheckpointTargets() const {
76 std::vector<CheckpointTarget> result;
77 result.push_back({clientContext.getDatabase()->getCatalog(), mainStorageManager});
78 for (auto* graphCatalog : clientContext.getDatabase()->getDatabaseManager()->getGraphs()) {
79 if (auto* graphStorageManager = graphCatalog->getStorageManager()) {
80 result.push_back({graphCatalog, graphStorageManager});
81 }
82 }
83 return result;
84}
85
86PageRange Checkpointer::serializeCatalog(const catalog::Catalog& catalog,
87 StorageManager& storageManager) {

Callers

nothing calls this directly

Calls 6

getCatalogMethod · 0.80
getGraphsMethod · 0.80
getDatabaseManagerMethod · 0.80
push_backMethod · 0.45
getDatabaseMethod · 0.45
getStorageManagerMethod · 0.45

Tested by

no test coverage detected