(&mut self, inode: u64, pos: &Position<NodeId>)
| 1610 | } |
| 1611 | |
| 1612 | fn put_inodes(&mut self, inode: u64, pos: &Position<NodeId>) -> PristineResult<()> { |
| 1613 | let mut inodes_table = self.txn.open_table(INODES)?; |
| 1614 | let mut rev_inodes_table = self.txn.open_table(REV_INODES)?; |
| 1615 | |
| 1616 | let pos_bytes = encode_position(pos.change.get(), pos.pos.get()); |
| 1617 | |
| 1618 | inodes_table.insert(inode, &pos_bytes)?; |
| 1619 | rev_inodes_table.insert(&pos_bytes, inode)?; |
| 1620 | Ok(()) |
| 1621 | } |
| 1622 | |
| 1623 | fn commit(self) -> PristineResult<()> { |
| 1624 | self.txn.commit()?; |
nothing calls this directly
no test coverage detected