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

Method put_inodes

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

Source from the content-addressed store, hash-verified

2245 }
2246
2247 fn put_inodes(&mut self, inode: u64, pos: &Position<NodeId>) -> PristineResult<()> {
2248 let mut inodes_table = self.txn.open_table(INODES)?;
2249 let mut rev_inodes_table = self.txn.open_table(REV_INODES)?;
2250
2251 let pos_bytes = encode_position(pos.change.get(), pos.pos.get());
2252
2253 inodes_table.insert(inode, &pos_bytes)?;
2254 rev_inodes_table.insert(&pos_bytes, inode)?;
2255 Ok(())
2256 }
2257
2258 fn commit(self) -> PristineResult<()> {
2259 if self.preview_allocations.is_some() {

Callers

nothing calls this directly

Calls 3

encode_positionFunction · 0.85
getMethod · 0.65
insertMethod · 0.45

Tested by

no test coverage detected