MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / release_pages

Method release_pages

nodedb-wal/src/mmap_reader.rs:139–141  ·  view source on GitHub ↗

Hint to the kernel that pages for this segment can be dropped from cache. Call this after a segment has been iterated end-to-end.

(&self)

Source from the content-addressed store, hash-verified

137 /// Hint to the kernel that pages for this segment can be dropped from
138 /// cache. Call this after a segment has been iterated end-to-end.
139 pub fn release_pages(&self) {
140 fadv_dontneed(&self.file, self.mmap.len(), &self.path);
141 }
142
143 /// Read the next record from the mmap'd region.
144 ///

Callers 3

replay_segments_parallelFunction · 0.80

Calls 2

fadv_dontneedFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected