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

Method put_inode_graph

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

Source from the content-addressed store, hash-verified

382 }
383
384 fn put_inode_graph(
385 &mut self,
386 inode: Inode,
387 node: GraphNode<NodeId>,
388 edge: SerializedGraphEdge,
389 ) -> PristineResult<bool> {
390 let mut table = self.txn.open_multimap_table(INODE_GRAPH)?;
391 let key = encode_inode_vertex(
392 inode.get(),
393 node.change.get(),
394 node.start.get(),
395 node.end.get(),
396 );
397 let value = serialize_edge(&edge);
398 let inserted = table.insert(&key, &value)?;
399 Ok(inserted)
400 }
401
402 fn del_inode_graph(
403 &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