(
txn: &mut T,
path: &str,
created_inodes: &HashMap<String, Inode>,
)
| 984 | // Low-Level Table Operations |
| 985 | |
| 986 | fn resolve_created_inode<T: MutTxnT>( |
| 987 | txn: &mut T, |
| 988 | path: &str, |
| 989 | created_inodes: &HashMap<String, Inode>, |
| 990 | ) -> PristineResult<Inode> { |
| 991 | if let Some(inode) = created_inodes.get(path) { |
| 992 | return Ok(*inode); |
| 993 | } |
| 994 | match txn.get_inode(path)? { |
| 995 | Some(inode) => Ok(inode), |
| 996 | None => txn.alloc_inode(), |
| 997 | } |
| 998 | } |
| 999 | |
| 1000 | /// Store a trunk in the CRDT tables. |
| 1001 | fn put_trunk<T: MutTxnT>( |
no test coverage detected