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

Method get_conflicts

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

Source from the content-addressed store, hash-verified

51 }
52
53 fn get_conflicts(&self, view_id: u64, inode: u64) -> PristineResult<Vec<StoredConflict>> {
54 let table = self.txn.open_table(CONFLICTS)?;
55 let key = encode_view_seq(view_id, inode);
56 let result = table.get(&key)?;
57 match result {
58 Some(value) => deserialize_conflicts(value.value()),
59 None => Ok(Vec::new()),
60 }
61 }
62
63 fn iter_conflicts(&self, view_id: u64) -> PristineResult<Vec<(u64, Vec<StoredConflict>)>> {
64 let table = self.txn.open_table(CONFLICTS)?;

Callers

nothing calls this directly

Calls 4

encode_view_seqFunction · 0.85
deserialize_conflictsFunction · 0.85
valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected