Victor Porof
|
4cdfba6754
|
Rename `DatabaseInvalid` to `FileInvalid` to avoid confusion with `DatabaseCorrupted`
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
a4d3ef2ca7
|
Rename `DbPoisonError` to `EnvPoisonError`
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
b9864a016c
|
Expose all backend implementation data structures to users
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
d53f82d651
|
Don't leak arena implementation details into documentation
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
5a00929742
|
Opening should fail when read transactions exist for `open` and `create` operations
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
7ece396155
|
Bump version to 0.11.1
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
b85d74b3c1
|
Update readme to exclude mentions about safe mode not being in the master branch
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
31908954e8
|
Merge branch 'master' into safe-mode
|
5 years ago |
Victor Porof
|
52292d076f
|
Expand readme to include information about backends and LMDB crashes
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
3ee55b509c
|
Merge pull request #177 from mozilla/optimize-multi-iters
Delay short-circuiting `skip_while` and `filter` adaptors for better perforamnce in case of multi databases
|
5 years ago |
Victor Porof
|
a05bf9fb02
|
Merge pull request #176 from mozilla/lifetimes
Don't allocate when creating 'from' and 'dup_of' iterators
|
5 years ago |
Victor Porof
|
ae33373bc4
|
Delay short-circuiting `skip_while` and `filter` adaptors for better perforamnce in case of multi databases
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
a5389008b6
|
Don't allocate when creating 'from' and 'dup_of' iterators
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
c8fac3bb43
|
Rename confusingly or inappropriately named lifetimes
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
6a866fdad2
|
Merge pull request #174 from mozilla/next
Bump version to 0.11.0
|
5 years ago |
Victor Porof
|
c3ab4bd600
|
Merge pull request #173 from mozilla/remove-dead
Remove dead code
|
5 years ago |
Victor Porof
|
369ded548b
|
Merge pull request #172 from mozilla/cursor-shenanigans
Fix cursor/iterator lifetime coupling which can result in referencing invalid memory when eliminating dead code
|
5 years ago |
Victor Porof
|
25c357a87d
|
Merge pull request #170 from mozilla/db-type-features
Optimize for non-int and non-dup-sort types of databases using features
|
5 years ago |
Victor Porof
|
346fe34e2f
|
Merge pull request #169 from mozilla/clippy-to-string
Fix clippy `inefficient_to_string` warnings on string values
|
5 years ago |
Victor Porof
|
0499ed06d7
|
Merge pull request #167 from mozilla/ensure-delete-fails
Add tests verifying that deletion also fails with a top-level store error
|
5 years ago |
Victor Porof
|
0f8a7e05be
|
Merge pull request #165 from mozilla/backends-interop
Ensure backends interop well when opened from the same directory
|
5 years ago |
Victor Porof
|
b825250570
|
Merge pull request #164 from mozilla/feature-parity
LMDB behavior parity
|
5 years ago |
Victor Porof
|
43e5aefeb9
|
Bump version to 0.11.0
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
abcc4b0371
|
Remove dead code
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
b5fedd453a
|
Fix cursor/iterator lifetime coupling which can result in referencing invalid memory when eliminating dead code
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
ea6001063c
|
Enable multiple test configurations based on database features on CI
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
607700872d
|
Optimize for non-int and non-dup-sort types of databases using features
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
3f501341c0
|
Fix clippy `inefficient_to_string` warnings on string values
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
d959e7d3ff
|
Add tests verifying that deletion also fails with a top-level store error
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
5517b283a9
|
Ensure that backends interop with each other in expected ways
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
fca4a8d9ea
|
Ensure that backends fail with a store error when attempting to open invalid databases
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
719b5a57fe
|
Add more tests
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
40e1d84b60
|
Make iterators yield items sorted by key (match LMDB)
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
957fb8d34d
|
Prevent opening databases when `max_dbs` is reached (match LMDB)
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
4bbe883d29
|
Prevent opening databases while read transactions are open (match LMDB)
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
cdd1e7b7cf
|
Remove superflous 'with-safe-mode' feature which isn't actually used anywhere
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
bdb02af9b6
|
Rename `Rkv::from_env` to `Rkv::from_builder` to better reflect what this method expects for params
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
804bdc18f2
|
Merge pull request #163 from mozilla/hashbrown
Prevent needless key/value copies in database methods
|
5 years ago |
Victor Porof
|
1083e13517
|
Merge pull request #162 from mozilla/safe-mode-managers
Allow safe mode environment managers
|
5 years ago |
Victor Porof
|
baef924d0c
|
Merge pull request #161 from mozilla/cow-snapshots
Cow snapshots instead of always cloning
|
5 years ago |
Victor Porof
|
7a722ad9e3
|
Merge pull request #160 from mozilla/safe-arena
Safe mode arena allocation for databases
|
5 years ago |
Victor Porof
|
3fe8f2eccc
|
Prevent needless key/value copies in database methods
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
7717f49841
|
Allow safe mode environment managers
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
7738b5a726
|
Add tests for intertwined read/write transactions
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
293795295f
|
Make transaction snapshots cheaper in the general case
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
ebcd29c6d5
|
Add tests for db persistence
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
c81ae4b97b
|
Derive eq and copy traits on single/multi database helpers
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
d97acd3be6
|
Re-enable equality and copy trait requirements on databases
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
eaf70e7f94
|
Use an arena for safe mode databases
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
89c0da6522
|
Implement multiple backing stores for Rkv (#158)
|
5 years ago |