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

Method put_inode_graph

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

Source from the content-addressed store, hash-verified

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