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

Method resolve_inode_attr

atomic-core/src/pristine/attribute.rs:126–140  ·  view source on GitHub ↗
(
        &self,
        position: Position<NodeId>,
        name: InodeAttrName,
        visible_changes: &HashSet<NodeId>,
    )

Source from the content-addressed store, hash-verified

124 ) -> PristineResult<Vec<InodeAttrEvent>>;
125
126 fn resolve_inode_attr(
127 &self,
128 position: Position<NodeId>,
129 name: InodeAttrName,
130 visible_changes: &HashSet<NodeId>,
131 ) -> PristineResult<InodeAttrState> {
132 let candidates: Vec<InodeAttrEvent> = self
133 .get_inode_attr_events(position, name)?
134 .into_iter()
135 .filter(|event| visible_changes.contains(&event.introduced_by))
136 .collect();
137 let mut maxima = attr_event_dependency_frontier(self, candidates)?;
138 maxima.dedup_by_key(|event| event.value);
139 Ok(InodeAttrState { events: maxima })
140 }
141}
142
143/// Mutable access to graph-backed inode attributes.

Implementers 2

view_graph.rsatomic-core/src/pristine/view_graph.rs
read.rsatomic-core/src/pristine/txn/read.rs

Calls 5

collectMethod · 0.45
into_iterMethod · 0.45
get_inode_attr_eventsMethod · 0.45
containsMethod · 0.45