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

Source from the content-addressed store, hash-verified

1893 }
1894
1895 fn inode_graph_is_populated(&self, inode: Inode) -> Result<bool, Self::InodeError> {
1896 let table = &self.inode_graph_table;
1897 let inode_id = inode.get();
1898 let start_key = encode_inode_vertex(inode_id, 0, 0, 0);
1899 let end_key = encode_inode_vertex(inode_id, u64::MAX, u64::MAX, u64::MAX);
1900 Ok(table
1901 .range::<&[u8; 32]>(&start_key..=&end_key)?
1902 .next()
1903 .is_some())
1904 }
1905
1906 fn inode_graph_needs_view_filter(&self) -> bool {
1907 false

Callers 1

find_content_verticesFunction · 0.45

Calls 3

encode_inode_vertexFunction · 0.85
getMethod · 0.65
nextMethod · 0.45

Tested by

no test coverage detected