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

Source from the content-addressed store, hash-verified

2462 }
2463
2464 fn inode_graph_is_populated(&self, inode: Inode) -> Result<bool, Self::InodeError> {
2465 let table = &self.inode_graph_table;
2466 let inode_id = inode.get();
2467 let start_key = encode_inode_vertex(inode_id, 0, 0, 0);
2468 let end_key = encode_inode_vertex(inode_id, u64::MAX, u64::MAX, u64::MAX);
2469 let populated = try_is_present(table.range::<&[u8; 32]>(&start_key..=&end_key)?)?;
2470 Ok(populated)
2471 }
2472
2473 fn inode_graph_needs_view_filter(&self) -> bool {
2474 false

Callers 1

find_content_verticesFunction · 0.45

Calls 3

encode_inode_vertexFunction · 0.85
try_is_presentFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected