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

Method get_conflicts

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

Source from the content-addressed store, hash-verified

363 }
364
365 fn get_conflicts(&self, view_id: u64, inode: u64) -> PristineResult<Vec<StoredConflict>> {
366 let table = self.txn.open_table(CONFLICTS)?;
367 let key = encode_view_seq(view_id, inode);
368 match table.get(&key)? {
369 Some(value) => deserialize_conflicts(value.value()),
370 None => Ok(Vec::new()),
371 }
372 }
373
374 fn iter_conflicts(&self, view_id: u64) -> PristineResult<Vec<(u64, Vec<StoredConflict>)>> {
375 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