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

Method snapshot_inode_graph_keys

atomic-core/src/pristine/txn/read.rs:868–885  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

866 }
867
868 fn snapshot_inode_graph_keys(&self) -> PristineResult<Vec<(Inode, GraphNode<NodeId>)>> {
869 let table = self.txn.open_multimap_table(INODE_GRAPH)?;
870 let mut rows = Vec::new();
871 for entry in table.iter()? {
872 let (key, _values) = entry?;
873 let (inode, change_id, start, end) = decode_inode_vertex(key.value());
874 rows.push((
875 Inode::new(inode),
876 GraphNode::new(
877 NodeId::new(change_id),
878 ChangePosition::new(start),
879 ChangePosition::new(end),
880 ),
881 ));
882 }
883 rows.sort_unstable();
884 Ok(rows)
885 }
886
887 fn iter_tree(
888 &self,

Callers 2

inode_graph_keysFunction · 0.45

Calls 4

decode_inode_vertexFunction · 0.85
valueMethod · 0.80
iterMethod · 0.45
pushMethod · 0.45

Tested by 1

inode_graph_keysFunction · 0.36