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

Method removeFilePagesFromFrames

src/storage/buffer_manager/buffer_manager.cpp:485–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485void BufferManager::removeFilePagesFromFrames(FileHandle& fileHandle) {
486 for (auto pageIdx = 0u; pageIdx < fileHandle.getNumPages(); ++pageIdx) {
487 removePageFromFrame(fileHandle, pageIdx, false /* do not flush */);
488 }
489}
490
491void BufferManager::updateFrameIfPageIsInFrameWithoutLock(file_idx_t fileIdx,
492 const uint8_t* newPage, page_idx_t pageIdx) {

Callers 2

TEST_FFunction · 0.80
clearMethod · 0.80

Calls 1

getNumPagesMethod · 0.45

Tested by 1

TEST_FFunction · 0.64