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

Method put_inode

atomic-core/src/pristine/txn/write/mod.rs:924–935  ·  view source on GitHub ↗
(&mut self, inode: Inode, pos: Position<NodeId>)

Source from the content-addressed store, hash-verified

922 }
923
924 fn put_inode(&mut self, inode: Inode, pos: Position<NodeId>) -> PristineResult<()> {
925 let pos_bytes = encode_position(pos.change.get(), pos.pos.get());
926 {
927 let mut table = self.txn.open_table(INODES)?;
928 table.insert(inode.get(), &pos_bytes)?;
929 }
930 {
931 let mut table = self.txn.open_table(REV_INODES)?;
932 table.insert(&pos_bytes, inode.get())?;
933 }
934 Ok(())
935 }
936
937 fn del_inode(&mut self, inode: Inode) -> PristineResult<Option<Position<NodeId>>> {
938 let pos = {

Callers 6

test_inode_operationsFunction · 0.80
write_import_recordedMethod · 0.80
insert_changeMethod · 0.80
write_recordedMethod · 0.80

Calls 3

encode_positionFunction · 0.85
getMethod · 0.65
insertMethod · 0.45

Tested by 1

test_inode_operationsFunction · 0.64