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

Method get_conflicts

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

Source from the content-addressed store, hash-verified

521 }
522
523 fn get_conflicts(&self, view_id: u64, inode: u64) -> PristineResult<Vec<StoredConflict>> {
524 let table = self.txn.open_table(CONFLICTS)?;
525 let key = encode_view_seq(view_id, inode);
526 match table.get(&key)? {
527 Some(value) => deserialize_conflicts(value.value()),
528 None => Ok(Vec::new()),
529 }
530 }
531
532 fn iter_conflicts(&self, view_id: u64) -> PristineResult<Vec<(u64, Vec<StoredConflict>)>> {
533 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