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

Function put_versioned

nodedb/src/engine/array/compaction/merger.rs:431–445  ·  view source on GitHub ↗
(e: &mut ArrayEngine, x: i64, y: i64, v: i64, sys_ms: i64, lsn: u64)

Source from the content-addressed store, hash-verified

429 use tempfile::TempDir;
430
431 fn put_versioned(e: &mut ArrayEngine, x: i64, y: i64, v: i64, sys_ms: i64, lsn: u64) {
432 e.put_cells(
433 &aid(),
434 vec![ArrayPutCell {
435 coord: vec![CoordValue::Int64(x), CoordValue::Int64(y)],
436 attrs: vec![CellValue::Int64(v)],
437 surrogate: nodedb_types::Surrogate::ZERO,
438 system_from_ms: sys_ms,
439 valid_from_ms: 0,
440 valid_until_ms: i64::MAX,
441 }],
442 lsn,
443 )
444 .unwrap();
445 }
446
447 #[test]
448 fn versioned_tiles_preserved_through_merge() {

Calls 2

put_cellsMethod · 0.80
aidFunction · 0.50

Tested by 1