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

Method mark_inode_recorded

atomic-core/src/record/builder.rs:341–343  ·  view source on GitHub ↗

Mark an inode as recorded at a specific position. This prevents duplicate recording of the same inode. # Arguments `inode` - The inode being recorded `position` - The graph position of the inode

(&mut self, inode: Inode, position: Position<Option<NodeId>>)

Source from the content-addressed store, hash-verified

339 /// * `inode` - The inode being recorded
340 /// * `position` - The graph position of the inode
341 pub fn mark_inode_recorded(&mut self, inode: Inode, position: Position<Option<NodeId>>) {
342 self.recorded_inodes.insert(inode, position);
343 }
344
345 /// Check if an inode has already been recorded.
346 ///

Callers 3

test_mark_inode_recordedFunction · 0.80
test_clearFunction · 0.80
test_stats_populatedFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by 3

test_mark_inode_recordedFunction · 0.64
test_clearFunction · 0.64
test_stats_populatedFunction · 0.64