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

Method get_inode_attr_events

atomic-core/src/pristine/view_graph.rs:504–515  ·  view source on GitHub ↗

Only register events introduced by changes visible in THIS view. The POSITION_ATTRS/INODE_ATTRS tables are global, so the raw read returns every sibling's writers. A change assembled on this view must not import invisible sibling causality: an event written by a change outside the view's closure is not an ancestor of the new change, and wiring it as a dependency leaks foreign causality into the a

(
        &self,
        position: Position<NodeId>,
        name: crate::change::InodeAttrName,
    )

Source from the content-addressed store, hash-verified

502 /// (`InodeAttrEvent::new` rejects it), so the closure check alone is
503 /// exact.
504 fn get_inode_attr_events(
505 &self,
506 position: Position<NodeId>,
507 name: crate::change::InodeAttrName,
508 ) -> Result<Vec<crate::pristine::InodeAttrEvent>, PristineError> {
509 Ok(self
510 .inner
511 .get_inode_attr_events(position, name)?
512 .into_iter()
513 .filter(|event| self.visibility.contains(event.introduced_by))
514 .collect())
515 }
516
517 fn get_inode_attr_events_by_inode(
518 &self,

Calls 3

collectMethod · 0.45
into_iterMethod · 0.45
containsMethod · 0.45