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

Function catchup_threshold

nodedb-cluster/src/migration.rs:300–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298
299 #[test]
300 fn catchup_threshold() {
301 let mut m = test_migration();
302 m.start_base_copy(100);
303 m.start_wal_catchup(0, 100);
304
305 // Still 90 behind.
306 m.update_wal_catchup(10, 100);
307 assert!(!m.is_catchup_ready());
308
309 // Within 10.
310 m.update_wal_catchup(95, 100);
311 assert!(m.is_catchup_ready());
312 }
313}

Callers

nothing calls this directly

Calls 4

test_migrationFunction · 0.85
start_base_copyMethod · 0.80
start_wal_catchupMethod · 0.80
update_wal_catchupMethod · 0.80

Tested by

no test coverage detected