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

Method mark_dirty

nodedb/src/storage/checkpoint.rs:61–63  ·  view source on GitHub ↗

Mark pages as dirty (called on writes).

(&mut self, count: usize)

Source from the content-addressed store, hash-verified

59
60 /// Mark pages as dirty (called on writes).
61 pub fn mark_dirty(&mut self, count: usize) {
62 self.dirty_pages += count;
63 }
64
65 /// Compute how many pages to flush this tick.
66 pub fn pages_to_flush(&self, config: &CheckpointConfig) -> usize {

Calls 2

iter_mutMethod · 0.80
findMethod · 0.45

Tested by 3

incremental_flushFunction · 0.64
clean_after_all_flushedFunction · 0.64