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

Method put_inode_graph

atomic-core/src/pristine/txn/write/mod.rs:857–873  ·  view source on GitHub ↗
(
        &mut self,
        inode: Inode,
        node: GraphNode<NodeId>,
        edge: SerializedGraphEdge,
    )

Source from the content-addressed store, hash-verified

855 }
856
857 fn put_inode_graph(
858 &mut self,
859 inode: Inode,
860 node: GraphNode<NodeId>,
861 edge: SerializedGraphEdge,
862 ) -> PristineResult<bool> {
863 let mut table = self.txn.open_multimap_table(INODE_GRAPH)?;
864 let key = encode_inode_vertex(
865 inode.get(),
866 node.change.get(),
867 node.start.get(),
868 node.end.get(),
869 );
870 let value = serialize_edge(&edge);
871 let inserted = table.insert(&key, &value)?;
872 Ok(inserted)
873 }
874
875 fn del_inode_graph(
876 &mut self,

Callers 7

test_inode_adj_iterationFunction · 0.45
test_find_block_in_inodeFunction · 0.45
test_inode_edge_iteratorFunction · 0.45
test_flag_filteringFunction · 0.45

Calls 4

encode_inode_vertexFunction · 0.85
serialize_edgeFunction · 0.85
getMethod · 0.65
insertMethod · 0.45

Tested by 7

test_inode_adj_iterationFunction · 0.36
test_find_block_in_inodeFunction · 0.36
test_inode_edge_iteratorFunction · 0.36
test_flag_filteringFunction · 0.36