Merge branch 'upgrade_rocksdb' into 'keydbpro'

upgrade to latest version of rocksdb

See merge request keydb-dev/KeyDB-Pro!34

Former-commit-id: 74c39b237ee0f9ff98a6cc8e3e4fbf70a3ee00ac
This commit is contained in:
jsully 2021-08-25 19:08:19 +00:00
commit 29d695cc9e
4 changed files with 25 additions and 6 deletions

View File

@ -12,7 +12,7 @@ build:
- docker
stage: build
script:
- git submodule update --init --remote
- git submodule update --init
- make distclean
- make -j
artifacts:
@ -113,7 +113,7 @@ endurance-test:
- docker
stage: test
script:
- git submodule update --init --remote
- git submodule update --init
- make distclean
- make -j
- ./runtest --config server-threads 3 --loop --stop
@ -125,7 +125,7 @@ coverage-test:
- docker
stage: test
script:
- git submodule update --init --remote
- git submodule update --init
- make distclean
- make gcov -j
- make install

3
.gitmodules vendored
View File

@ -1,7 +1,6 @@
[submodule "deps/rocksdb"]
path = deps/rocksdb
url = https://gitlab.eqalpha.com/submodules/rocksdb.git
branch = keydb_v6
url = https://github.com/facebook/rocksdb.git
[submodule "deps/depot_tools"]
path = deps/depot_tools
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git

2
deps/rocksdb vendored

@ -1 +1 @@
Subproject commit 887e6bf34527403164a9c4eb1d62dfb668291734
Subproject commit c3034fce329017036c807e01261729bfc11a5d62

View File

@ -12,6 +12,16 @@ start_server [list tags {flash} overrides [list storage-provider {flash ./rocks.
assert_equal {0} [r dbsize] "Key count is accurate after non-existant delete"
}
test { DEL of flushed key works } {
r flushall
r set testkey foo
assert_equal {1} [r dbsize] "Only one key after first insert"
r flushall cache
assert_equal {foo} [r get testkey] "Value still there after flushing cache"
r del testkey
assert_equal {0} [r dbsize] "No keys after delete"
}
test { SET of existing but flushed key works } {
r flushall
r set testkey foo
@ -99,6 +109,16 @@ start_server [list tags {flash} overrides [list storage-provider {flash ./rocks.
assert_equal $expectedDigest [r debug digest]
}
test { DELETE of flushed set member persists after another flush } {
r flushall
r sadd set1 val1 val2 val3
assert_equal {3} [r scard set1]
r flushall cache
r srem set1 val1
r flushall cache
assert_equal {2} [r scard set1]
}
r flushall
# If a weak storage memory model is set, wait for any pending snapshot writes to finish
after 500