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

Function createNewPersistentChunkGroup

src/storage/table/csr_node_group.cpp:507–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507static std::unique_ptr<ChunkedCSRNodeGroup> createNewPersistentChunkGroup(
508 ChunkedCSRNodeGroup& oldPersistentChunkGroup, CSRNodeGroupCheckpointState& csrState) {
509 auto newGroup =
510 std::make_unique<ChunkedCSRNodeGroup>(oldPersistentChunkGroup, csrState.columnIDs);
511 // checkpointed columns have been moved to the new group, reclaim storage for dropped column
512 oldPersistentChunkGroup.reclaimStorage(csrState.pageAllocator);
513 return newGroup;
514}
515
516void CSRNodeGroup::checkpointInMemAndOnDisk(const UniqLock& lock, NodeGroupCheckpointState& state) {
517 // TODO(Guodong): Should skip early here if no changes in the node group, so we avoid scanning

Callers 1

Calls 1

reclaimStorageMethod · 0.45

Tested by

no test coverage detected