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

Method register_engine

nodedb/src/storage/checkpoint.rs:108–112  ·  view source on GitHub ↗

Register an engine for checkpoint tracking.

(&mut self, name: &str)

Source from the content-addressed store, hash-verified

106
107 /// Register an engine for checkpoint tracking.
108 pub fn register_engine(&mut self, name: &str) {
109 if !self.engines.iter().any(|e| e.engine_name == name) {
110 self.engines.push(EngineCheckpointState::new(name));
111 }
112 }
113
114 /// Mark dirty pages for an engine (called on writes).
115 pub fn mark_dirty(&mut self, engine: &str, count: usize) {

Callers 5

set_checkpoint_configMethod · 0.80
incremental_flushFunction · 0.80
clean_after_all_flushedFunction · 0.80

Calls 2

iterMethod · 0.45
pushMethod · 0.45

Tested by 3

incremental_flushFunction · 0.64
clean_after_all_flushedFunction · 0.64