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

Source from the content-addressed store, hash-verified

1719 }
1720
1721 fn inode_graph_is_populated(&self, inode: Inode) -> Result<bool, Self::InodeError> {
1722 let table = &self.inode_graph_table;
1723 let inode_id = inode.get();
1724 let start_key = encode_inode_vertex(inode_id, 0, 0, 0);
1725 let end_key = encode_inode_vertex(inode_id, u64::MAX, u64::MAX, u64::MAX);
1726 Ok(table
1727 .range::<&[u8; 32]>(&start_key..=&end_key)?
1728 .next()
1729 .is_some())
1730 }
1731
1732 fn inode_graph_needs_view_filter(&self) -> bool {
1733 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