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

Method record_flush

nodedb/src/storage/checkpoint.rs:78–82  ·  view source on GitHub ↗

Record that pages were flushed.

(&mut self, count: usize)

Source from the content-addressed store, hash-verified

76
77 /// Record that pages were flushed.
78 pub fn record_flush(&mut self, count: usize) {
79 self.dirty_pages = self.dirty_pages.saturating_sub(count);
80 self.total_flushed += count as u64;
81 self.last_flush = Some(Instant::now());
82 }
83}
84
85/// Checkpoint coordinator: manages incremental flushing across engines.

Callers 4

execute_checkpointMethod · 0.80
maybe_run_maintenanceMethod · 0.80
incremental_flushFunction · 0.80
clean_after_all_flushedFunction · 0.80

Calls 3

nowFunction · 0.85
iter_mutMethod · 0.80
findMethod · 0.45

Tested by 2

incremental_flushFunction · 0.64
clean_after_all_flushedFunction · 0.64