add dummy RcEntry trait for rc tree key
[?]
9FZSPF6U3oQmpTwxvCnadrHKQEqTkEpnrDg1UWw9Zo9E
Oct 25, 2021, 10:30 PM
EDTFMMZW4N2LJQRV3UTY7PVAIKPLNRKQTB6QCMRXXT7QS2YWG5ZACDependencies
- [2]
YATBB4O7run cargo fmt - [3]
OTWDDJE7Trait/type cleanup - [4]
WS4ZQM4RDebugging, tests, etc. - [5]
W2MIZD5BSingle file databases + CRC for the root pages (checking the other pages makes everything very slow) - [6]
ECPAFJSBadd env_borrow for Txn and MutTxn - [7]
5LSYTRQ6More docs, example, and fixing the free page diagnostic function for mutable transactions - [8]
OP6SVMODResetting history - [9]
YDHYZA77Adding the RootPage trait to access the raw bytes of a root page (needed in libpijul) - [10]
YWFYZNLZCleanup + inter-process concurrency - [11]
KMT3MF5NDrop a database - [12]
E4MD6T3LProofreading and commenting of this crate (massive bug fixes included) - [13]
YXKP4AIWNew file locks, with multiple sets of free pages - [14]
TJ2R4HAZAccessing the root pages (unsafely, of course)
Change contents
- replacement in "sanakirja/src/environment/muttxn.rs" at line 5
impl<E: Borrow<Env>, T> std::fmt::Debug for MutTxn<E, T> {impl<E: Borrow<Env>, T, R: RcEntry> std::fmt::Debug for MutTxn<E, T, R> { - edit in "sanakirja/src/environment/muttxn.rs" at line 10
pub trait RcEntry: PartialEq + Storable {} - replacement in "sanakirja/src/environment/muttxn.rs" at line 14
pub struct MutTxn<E: Borrow<Env>, T> {pub struct MutTxn<E: Borrow<Env>, T, R: RcEntry> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 31
pub(crate) rc: Option<btree::Db<u64, ()>>,pub(crate) rc: Option<btree::Db<R, ()>>, - replacement in "sanakirja/src/environment/muttxn.rs" at line 53
impl<E: Borrow<Env>, T> MutTxn<E, T> {impl<E: Borrow<Env>, T, R: RcEntry> MutTxn<E, T, R> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 62
impl<E: Borrow<Env>, T> Drop for MutTxn<E, T> {impl<E: Borrow<Env>, T, R: RcEntry> Drop for MutTxn<E, T, R> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 84
impl<'a, E: Borrow<Env>, T> Commit for MutTxn<E, &'a mut MutTxn<E, T>> {impl<'a, E: Borrow<Env>, T, R: RcEntry> Commit for MutTxn<E, &'a mut MutTxn<E, T, R>, R> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 149
pub fn mut_txn_begin<E: Borrow<Self>>(env: E) -> Result<MutTxn<E, ()>, Error> {pub fn mut_txn_begin<E: Borrow<Self>, R: RcEntry>(env: E) -> Result<MutTxn<E, (), R>, Error> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 214
impl<E: Borrow<Env>> Commit for MutTxn<E, ()> {impl<E: Borrow<Env>, R: RcEntry> Commit for MutTxn<E, (), R> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 338
impl<E: Borrow<Env>, T> MutTxn<E, T> {impl<E: Borrow<Env>, T, R: RcEntry> MutTxn<E, T, R> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 449
impl<E: Borrow<Env>, T> sanakirja_core::AllocPage for MutTxn<E, T> {impl<E: Borrow<Env>, T, R: RcEntry> sanakirja_core::AllocPage for MutTxn<E, T, R> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 532
impl<E: Borrow<Env>, A> MutTxn<E, A> {impl<E: Borrow<Env>, A, R: RcEntry> MutTxn<E, A, R> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 597
impl<E: Borrow<Env>, A> sanakirja_core::LoadPage for MutTxn<E, A> {impl<E: Borrow<Env>, A, R: RcEntry> sanakirja_core::LoadPage for MutTxn<E, A, R> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 621
impl<E: Borrow<Env>, T> RootPage for MutTxn<E, T> {impl<E: Borrow<Env>, T, R: RcEntry> RootPage for MutTxn<E, T, R> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 630
impl<E: Borrow<Env>, T> MutTxn<E, T> {impl<E: Borrow<Env>, T, R: RcEntry> MutTxn<E, T, R> { - replacement in "sanakirja/src/environment/muttxn.rs" at line 656
impl<E: Borrow<Env>, T> RootDb for MutTxn<E, T> {impl<E: Borrow<Env>, T, R: RcEntry> RootDb for MutTxn<E, T, R> {