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

Method checkpoint

src/storage/disk_array.cpp:228–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void DiskArrayInternal::checkpoint() {
229 if (pipUpdates.updatedLastPIP.has_value()) {
230 ShadowUtils::updatePage(fileHandle, pipUpdates.updatedLastPIP->pipPageIdx, true,
231 *shadowFile, [&](auto* frame) {
232 memcpy(frame, &pipUpdates.updatedLastPIP->pipContents, sizeof(PIP));
233 });
234 }
235 for (auto& newPIP : pipUpdates.newPIPs) {
236 ShadowUtils::updatePage(fileHandle, newPIP.pipPageIdx, true, *shadowFile,
237 [&](auto* frame) { memcpy(frame, &newPIP.pipContents, sizeof(PIP)); });
238 }
239}
240
241void DiskArrayInternal::reclaimStorage(PageAllocator& pageAllocator) const {
242 for (auto& pip : pips) {

Callers 3

getNextTuplesInternalMethod · 0.45
checkpointStorageMethod · 0.45
~DatabaseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected