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

Method unpin

src/storage/buffer_manager/buffer_manager.cpp:265–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265void BufferManager::unpin(FileHandle& fileHandle, page_idx_t pageIdx) {
266 auto pageState = fileHandle.getPageState(pageIdx);
267 pageState->unlock();
268}
269
270// evicts up to 64 pages and returns the space reclaimed
271uint64_t BufferManager::evictPages() {

Callers 1

freeBlockMethod · 0.45

Calls 2

getPageStateMethod · 0.80
unlockMethod · 0.80

Tested by

no test coverage detected