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

Method get_change_deps

atomic-core/src/pristine/txn/read.rs:436–445  ·  view source on GitHub ↗
(&self, change_id: NodeId)

Source from the content-addressed store, hash-verified

434 }
435
436 fn get_change_deps(&self, change_id: NodeId) -> PristineResult<Vec<Hash>> {
437 let table = self.txn.open_multimap_table(CHANGE_DEPS)?;
438 let mut result = Vec::new();
439 let iter = table.get(change_id.get())?;
440 for item in iter {
441 let value = item?;
442 result.push(Hash::from_bytes(*value.value()));
443 }
444 Ok(result)
445 }
446
447 fn change_deps_indexed_count(&self, change_id: NodeId) -> PristineResult<Option<u64>> {
448 let table = self.txn.open_table(CHANGE_DEPS_INDEXED)?;

Callers 10

depends_onMethod · 0.45
raw_dependenciesFunction · 0.45
compute_union_frontierFunction · 0.45
visitFunction · 0.45
check_unrecord_safetyMethod · 0.45

Calls 7

valueMethod · 0.80
lockMethod · 0.80
getMethod · 0.65
pushMethod · 0.45
unwrapMethod · 0.45
insertMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected