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:1850–1859  ·  view source on GitHub ↗
(&self, inode: Inode)

Source from the content-addressed store, hash-verified

1848 }
1849
1850 fn inode_graph_is_populated(&self, inode: Inode) -> Result<bool, Self::InodeError> {
1851 let table = &self.inode_graph_table;
1852 let inode_id = inode.get();
1853 let start_key = encode_inode_vertex(inode_id, 0, 0, 0);
1854 let end_key = encode_inode_vertex(inode_id, u64::MAX, u64::MAX, u64::MAX);
1855 Ok(table
1856 .range::<&[u8; 32]>(&start_key..=&end_key)?
1857 .next()
1858 .is_some())
1859 }
1860
1861 fn inode_graph_needs_view_filter(&self) -> bool {
1862 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