(
&self,
durability: redb::Durability,
)
| 726 | } |
| 727 | |
| 728 | fn write_txn_with_durability( |
| 729 | &self, |
| 730 | durability: redb::Durability, |
| 731 | ) -> PristineResult<WriteTxn<'_>> { |
| 732 | let mut txn = self.db.writable_db()?.begin_write()?; |
| 733 | let _ = txn.set_durability(durability); |
| 734 | crate::pristine::applied_changes::initialize(&txn)?; |
| 735 | Ok(WriteTxn::new( |
| 736 | txn, |
| 737 | &self.next_node_id, |
| 738 | &self.next_view_id, |
| 739 | &self.next_inode, |
| 740 | )) |
| 741 | } |
| 742 | |
| 743 | /// Allocate a new node ID |
| 744 | /// |
no test coverage detected