(&self, key: &[u8; 12])
| 2285 | |
| 2286 | impl crate::pristine::traits::CrdtTxnT for WriteTxn<'_> { |
| 2287 | fn get_crdt_trunk(&self, key: &[u8; 12]) -> PristineResult<Option<SerializedTrunk>> { |
| 2288 | let table = self.txn.open_table(TRUNKS)?; |
| 2289 | let result = match table.get(key)? { |
| 2290 | Some(guard) => { |
| 2291 | let bytes_copy: Vec<u8> = guard.value().to_vec(); |
| 2292 | decode_trunk_value(&bytes_copy) |
| 2293 | } |
| 2294 | None => None, |
| 2295 | }; |
| 2296 | Ok(result) |
| 2297 | } |
| 2298 | |
| 2299 | fn get_crdt_inode_trunk(&self, inode: u64) -> PristineResult<Option<[u8; 12]>> { |
| 2300 | let table = self.txn.open_table(INODE_TRUNK)?; |
nothing calls this directly
no test coverage detected