MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / record

Function record

atomic-core/src/pristine/txn/write/working_copy.rs:108–117  ·  view source on GitHub ↗
(id: WorkingCopyId, location_byte: u8, desired_view: u64)

Source from the content-addressed store, hash-verified

106 use crate::pristine::{MutTxnT, Pristine, ViewScope};
107
108 fn record(id: WorkingCopyId, location_byte: u8, desired_view: u64) -> WorkingCopyRecord {
109 WorkingCopyRecord {
110 id,
111 location_fingerprint: Hash::from_bytes([location_byte; 32]),
112 desired_view,
113 desired_state: Merkle::from_bytes([3; 32]),
114 materialized_state: None,
115 materialized_manifest: None,
116 }
117 }
118
119 #[test]
120 fn working_copy_record_survives_existing_and_readonly_reopen() {

Calls

no outgoing calls