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

Function auto_flush_triggers_at_threshold

nodedb/src/engine/array/write.rs:146–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144
145 #[test]
146 fn auto_flush_triggers_at_threshold() {
147 let dir = TempDir::new().unwrap();
148 let mut cfg = ArrayEngineConfig::new(dir.path().to_path_buf());
149 cfg.flush_cell_threshold = 2;
150 let mut e = ArrayEngine::new(cfg).unwrap();
151 e.open_array(aid(), schema(), 0x1).unwrap();
152 for i in 0..2 {
153 put_one(&mut e, i, i, i, (i as u64) + 1);
154 }
155 assert!(!e.store(&aid()).unwrap().manifest().segments.is_empty());
156 }
157
158 #[test]
159 fn put_cells_stamps_memtable_with_supplied_lsn() {

Callers

nothing calls this directly

Calls 5

put_oneFunction · 0.85
open_arrayMethod · 0.80
aidFunction · 0.70
schemaFunction · 0.70
pathMethod · 0.45

Tested by

no test coverage detected