(&mut self, inode: u64, pos: &Position<NodeId>)
| 1137 | } |
| 1138 | |
| 1139 | fn put_inodes(&mut self, inode: u64, pos: &Position<NodeId>) -> PristineResult<()> { |
| 1140 | let mut inodes_table = self.txn.open_table(INODES)?; |
| 1141 | let mut rev_inodes_table = self.txn.open_table(REV_INODES)?; |
| 1142 | |
| 1143 | let pos_bytes = encode_position(pos.change.get(), pos.pos.get()); |
| 1144 | |
| 1145 | inodes_table.insert(inode, &pos_bytes)?; |
| 1146 | rev_inodes_table.insert(&pos_bytes, inode)?; |
| 1147 | Ok(()) |
| 1148 | } |
| 1149 | |
| 1150 | fn commit(self) -> PristineResult<()> { |
| 1151 | self.txn.commit()?; |
nothing calls this directly
no test coverage detected