| 90 | } |
| 91 | |
| 92 | void MemoryManager::freeBlock(page_idx_t pageIdx, std::span<uint8_t> buffer) { |
| 93 | if (pageIdx == INVALID_PAGE_IDX) { |
| 94 | std::free(buffer.data()); |
| 95 | } else { |
| 96 | bm->unpin(*fh, pageIdx); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | void MemoryManager::updateUsedMemoryForFreedBlock(page_idx_t pageIdx, std::span<uint8_t> buffer) { |
| 101 | if (pageIdx == INVALID_PAGE_IDX) { |
no test coverage detected