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

Method inode_graph_is_populated

atomic-core/src/pristine/txn/read.rs:1832–1841  ·  view source on GitHub ↗
(&self, inode: Inode)

Source from the content-addressed store, hash-verified

1830 }
1831
1832 fn inode_graph_is_populated(&self, inode: Inode) -> Result<bool, Self::InodeError> {
1833 let table = &self.inode_graph_table;
1834 let inode_id = inode.get();
1835 let start_key = encode_inode_vertex(inode_id, 0, 0, 0);
1836 let end_key = encode_inode_vertex(inode_id, u64::MAX, u64::MAX, u64::MAX);
1837 Ok(table
1838 .range::<&[u8; 32]>(&start_key..=&end_key)?
1839 .next()
1840 .is_some())
1841 }
1842
1843 fn inode_graph_needs_view_filter(&self) -> bool {
1844 false

Callers 2

find_content_verticesFunction · 0.45

Calls 3

encode_inode_vertexFunction · 0.85
getMethod · 0.65
nextMethod · 0.45

Tested by

no test coverage detected