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

Method clearFile

src/storage/buffer_manager/spiller.cpp:107–112  ·  view source on GitHub ↗

NOLINTNEXTLINE(readability-make-member-function-const): Function shouldn't be re-ordered

Source from the content-addressed store, hash-verified

105
106// NOLINTNEXTLINE(readability-make-member-function-const): Function shouldn't be re-ordered
107void Spiller::clearFile() {
108 auto curDataFH = getDataFH();
109 if (curDataFH) {
110 curDataFH->getFileInfo()->truncate(0);
111 }
112}
113
114} // namespace storage
115} // namespace lbug

Callers 2

executeNoLockMethod · 0.80
handleFailedExecutionMethod · 0.80

Calls 3

getDataFHFunction · 0.85
truncateMethod · 0.45
getFileInfoMethod · 0.45

Tested by

no test coverage detected