pijul nest
guest [sign in]

Fixing two crashes on corrupted files

pmeunier
Sep 7, 2021, 3:26 PM
VRAQTH26BACG74FXYGWKXWNWDBKF27Y6DX5KJ7XSLZ3HIUKVLTSQC

Dependencies

  • [2] P5NWMJ2H Version bump
  • [3] YWFYZNLZ Cleanup + inter-process concurrency
  • [4] OP6SVMOD Resetting history
  • [5] 5LSYTRQ6 More docs, example, and fixing the free page diagnostic function for mutable transactions
  • [6] BPR2HVMR Version bump
  • [7] E4MD6T3L Proofreading and commenting of this crate (massive bug fixes included)
  • [8] 2ZRCQBXP Version bump
  • [9] TJ2R4HAZ Accessing the root pages (unsafely, of course)
  • [10] M6PHQUGL fallocate only when necessary
  • [11] DASFQGOR Debugging
  • [12] WTXLZDYI Fixing bus errors on a full disk
  • [13] OHUZ73MK Versions
  • [14] FQ567GAX Version bumps
  • [15] OFINGD26 implementing prev() on cursors (+ some cleanup)

Change contents

  • replacement in ""sanakirja/src/environment/muttxn.rs"" at line 633
    [3.4718][3.21195:21217]()
    Some(*db)
    [3.4718]
    [3.4874]
    if *db == 0 {
    None
    } else {
    Some(*db)
    }
  • replacement in ""sanakirja/src/environment/mod.rs"" at line 176
    [3.20157][3.20157:20209]()
    assert_eq!(g.version, CURRENT_VERSION);
    [3.20157]
    [3.20209]
    if g.version != CURRENT_VERSION {
    return Err(Error::VersionMismatch)
    }
  • replacement in ""sanakirja/Cargo.toml"" at line 3
    [3.108441][2.20:38]()
    version = "1.2.9"
    [3.108441]
    [3.108459]
    version = "1.2.11"