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

Method freeBlock

src/storage/buffer_manager/memory_manager.cpp:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void 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
100void MemoryManager::updateUsedMemoryForFreedBlock(page_idx_t pageIdx, std::span<uint8_t> buffer) {
101 if (pageIdx == INVALID_PAGE_IDX) {

Callers 3

~MemoryBufferMethod · 0.80
setSpilledToDiskMethod · 0.80
deallocateMethod · 0.80

Calls 2

dataMethod · 0.45
unpinMethod · 0.45

Tested by

no test coverage detected