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 |
Victor Porof
|
9792551a4c
|
Remove write flags superfluous associated type
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
39cc10861a
|
Add more tests for the safe mode backend
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
a92867c8ab
|
Add more tests for the rkv backend
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
4a955a70a0
|
Implement safe mode backing store
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
1d9c11f9f4
|
Drop eq and partial-eq trait requirement on backend databases
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
2bb1436375
|
Drop copy and clone traits requirement on backend databases
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
a4d76eb250
|
Generalize LMDB usage and add support for multiple backing stores
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
8b51df1952
|
Pre: split key types into separate module
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
11ac25cf2f
|
Bump version to 0.10.2
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
429b34df20
|
Merge pull request #157 from mozilla/optional-clang
Remove with-clang feature in favor of using $CC and update lmdb-rkv crate
|
5 years ago |
Victor Porof
|
7430e820f3
|
Bump lmdb-rkv version to 0.12.3
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
ef6779b0c6
|
Temporarily work around CI failure on rust nightlies
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
d9bb9beb3f
|
Remove with-clang feature in favor of using $CC
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
0db8bb6eb8
|
Bump version to 0.10.1
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
009f6c36ef
|
Bump lmdb-rkv version to 0.12.2
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
df50b077b0
|
Use relaxed dependency versions (pre 0.10) for better build compat with m-c (#156)
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
5d3a32041a
|
Merge pull request #154 from mozilla/windows-ci-updates
Various CI updates
|
5 years ago |
Victor Porof
|
d884c8ba84
|
Merge pull request #153 from mozilla/update-rkv
Update rkv
|
5 years ago |
Victor Porof
|
95260679c6
|
Cache crates and build on CI under Windows
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
428ee3d301
|
Test both debug and release versions on CI under Windows
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
83f2cd3ebe
|
Don't use sudo unnecessarily
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
d120c7ceb4
|
Don't allow failures on nightly
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |
Victor Porof
|
8a2acf9a5d
|
Use official clang on osx
Signed-off-by: Victor Porof <victor.porof@gmail.com>
|
5 years ago |