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

Method finalizeCheckpoint

src/storage/table/csr_node_group.cpp:1243–1253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241}
1242
1243void CSRNodeGroup::finalizeCheckpoint(const UniqLock& lock) {
1244 // Clean up versions and in mem chunked groups.
1245 if (persistentChunkGroup) {
1246 persistentChunkGroup->resetNumRowsFromChunks();
1247 persistentChunkGroup->resetVersionAndUpdateInfo();
1248 }
1249 chunkedGroups.clear(lock);
1250 // Set `numRows` back to 0 is to reflect that the in mem part of the node group is empty.
1251 numRows = 0;
1252 csrIndex.reset();
1253}
1254
1255} // namespace storage
1256} // namespace lbug

Callers

nothing calls this directly

Calls 4

clearMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected