| 226 | } |
| 227 | |
| 228 | void 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 | |
| 241 | void DiskArrayInternal::reclaimStorage(PageAllocator& pageAllocator) const { |
| 242 | for (auto& pip : pips) { |
no outgoing calls
no test coverage detected