pijul nest
guest [sign in]

rename MutTxn to GenericMutTxn

[?]
9FZSPF6U3oQmpTwxvCnadrHKQEqTkEpnrDg1UWw9Zo9E
Oct 25, 2021, 10:40 PM
NW4S4ZCCT7356356Z46YXQNWL6MTKZY4CGRNZDCHIHUFANYZLN6QC

Dependencies

  • [2] EDTFMMZW add dummy RcEntry trait for rc tree key
  • [3] OP6SVMOD Resetting history
  • [4] XEU2QVLC Debugging after plugging this into Pijul
  • [5] YATBB4O7 run cargo fmt
  • [6] YXKP4AIW New file locks, with multiple sets of free pages
  • [7] YWFYZNLZ Cleanup + inter-process concurrency
  • [8] TJ2R4HAZ Accessing the root pages (unsafely, of course)
  • [9] YDHYZA77 Adding the RootPage trait to access the raw bytes of a root page (needed in libpijul)
  • [10] ECPAFJSB add env_borrow for Txn and MutTxn
  • [11] WS4ZQM4R Debugging, tests, etc.
  • [12] KMT3MF5N Drop a database
  • [13] E4MD6T3L Proofreading and commenting of this crate (massive bug fixes included)
  • [14] 3QM7P3RR Writing the reference counts when committing
  • [15] W2MIZD5B Single file databases + CRC for the root pages (checking the other pages makes everything very slow)

Change contents

  • replacement in "sanakirja/src/environment/muttxn.rs" at line 5
    [3.80263][2.0:74]()
    impl<E: Borrow<Env>, T, R: RcEntry> std::fmt::Debug for MutTxn<E, T, R> {
    [3.80263]
    [3.37172]
    impl<E: Borrow<Env>, T, R: RcEntry> std::fmt::Debug for GenericMutTxn<E, T, R> {
  • edit in "sanakirja/src/environment/muttxn.rs" at line 12
    [2.119]
    [3.37287]
    impl RcEntry for u64 {}
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 16
    [3.80290][2.120:171]()
    pub struct MutTxn<E: Borrow<Env>, T, R: RcEntry> {
    [3.80290]
    [3.2751]
    pub struct GenericMutTxn<E: Borrow<Env>, T, R: RcEntry> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 55
    [3.80903][2.218:272]()
    impl<E: Borrow<Env>, T, R: RcEntry> MutTxn<E, T, R> {
    [3.80903]
    [3.2393]
    impl<E: Borrow<Env>, T, R: RcEntry> GenericMutTxn<E, T, R> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 64
    [3.7735][2.273:336]()
    impl<E: Borrow<Env>, T, R: RcEntry> Drop for MutTxn<E, T, R> {
    [3.7735]
    [3.80962]
    impl<E: Borrow<Env>, T, R: RcEntry> Drop for GenericMutTxn<E, T, R> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 86
    [3.8146][2.337:428]()
    impl<'a, E: Borrow<Env>, T, R: RcEntry> Commit for MutTxn<E, &'a mut MutTxn<E, T, R>, R> {
    [3.8146]
    [3.37309]
    impl<'a, E: Borrow<Env>, T, R: RcEntry> Commit for GenericMutTxn<E, &'a mut GenericMutTxn<E, T, R>, R> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 151
    [3.82078][2.429:528]()
    pub fn mut_txn_begin<E: Borrow<Self>, R: RcEntry>(env: E) -> Result<MutTxn<E, (), R>, Error> {
    [3.82078]
    [3.82162]
    pub fn mut_txn_begin<E: Borrow<Self>, R: RcEntry>(env: E) -> Result<GenericMutTxn<E, (), R>, Error> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 182
    [3.10473][3.83538:83562](),[3.83538][3.83538:83562]()
    Ok(MutTxn {
    [3.10473]
    [3.83562]
    Ok(GenericMutTxn {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 216
    [3.3232][2.529:592]()
    impl<E: Borrow<Env>, R: RcEntry> Commit for MutTxn<E, (), R> {
    [3.3232]
    [3.84119]
    impl<E: Borrow<Env>, R: RcEntry> Commit for GenericMutTxn<E, (), R> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 340
    [3.86004][2.593:647]()
    impl<E: Borrow<Env>, T, R: RcEntry> MutTxn<E, T, R> {
    [3.86004]
    [3.15482]
    impl<E: Borrow<Env>, T, R: RcEntry> GenericMutTxn<E, T, R> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 451
    [3.87011][2.648:732]()
    impl<E: Borrow<Env>, T, R: RcEntry> sanakirja_core::AllocPage for MutTxn<E, T, R> {
    [3.87011]
    [3.87091]
    impl<E: Borrow<Env>, T, R: RcEntry> sanakirja_core::AllocPage for GenericMutTxn<E, T, R> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 534
    [3.19838][2.733:787]()
    impl<E: Borrow<Env>, A, R: RcEntry> MutTxn<E, A, R> {
    [3.19838]
    [3.19877]
    impl<E: Borrow<Env>, A, R: RcEntry> GenericMutTxn<E, A, R> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 599
    [3.90733][2.788:871]()
    impl<E: Borrow<Env>, A, R: RcEntry> sanakirja_core::LoadPage for MutTxn<E, A, R> {
    [3.90733]
    [3.20953]
    impl<E: Borrow<Env>, A, R: RcEntry> sanakirja_core::LoadPage for GenericMutTxn<E, A, R> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 623
    [3.4392][2.872:939]()
    impl<E: Borrow<Env>, T, R: RcEntry> RootPage for MutTxn<E, T, R> {
    [3.4392]
    [3.120]
    impl<E: Borrow<Env>, T, R: RcEntry> RootPage for GenericMutTxn<E, T, R> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 632
    [3.367][2.940:994]()
    impl<E: Borrow<Env>, T, R: RcEntry> MutTxn<E, T, R> {
    [3.367]
    [3.21017]
    impl<E: Borrow<Env>, T, R: RcEntry> GenericMutTxn<E, T, R> {
  • replacement in "sanakirja/src/environment/muttxn.rs" at line 658
    [3.21349][2.995:1060]()
    impl<E: Borrow<Env>, T, R: RcEntry> RootDb for MutTxn<E, T, R> {
    [3.21349]
    [3.21399]
    impl<E: Borrow<Env>, T, R: RcEntry> RootDb for GenericMutTxn<E, T, R> {