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

Method get_conflicts

atomic-core/src/pristine/txn/write/view.rs:40–48  ·  view source on GitHub ↗
(&self, view_id: u64, inode: u64)

Source from the content-addressed store, hash-verified

38 }
39
40 fn get_conflicts(&self, view_id: u64, inode: u64) -> PristineResult<Vec<StoredConflict>> {
41 let table = self.txn.open_table(CONFLICTS)?;
42 let key = encode_view_seq(view_id, inode);
43 let result = table.get(&key)?;
44 match result {
45 Some(value) => deserialize_conflicts(value.value()),
46 None => Ok(Vec::new()),
47 }
48 }
49
50 fn iter_conflicts(&self, view_id: u64) -> PristineResult<Vec<(u64, Vec<StoredConflict>)>> {
51 let table = self.txn.open_table(CONFLICTS)?;

Callers

nothing calls this directly

Calls 3

encode_view_seqFunction · 0.85
deserialize_conflictsFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected