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:498–509  ·  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

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

Calls 3

collectMethod · 0.45
into_iterMethod · 0.45
containsMethod · 0.45