Skip to content

Commit

Permalink
Adapt rocksdb 7.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
linxGnu committed Mar 27, 2022
1 parent 957330d commit ee0c669
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ cd $BUILD_PATH && wget https://github.com/facebook/zstd/archive/v${zstd_version}
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DZSTD_ZLIB_SUPPORT=ON -DZSTD_LZMA_SUPPORT=OFF -DCMAKE_BUILD_TYPE=Release .. && make -j$(nproc) install && \
cd $BUILD_PATH && rm -rf * && ldconfig

rocksdb_version="7.0.2"
rocksdb_version="7.0.3"
cd $BUILD_PATH && wget https://github.com/facebook/rocksdb/archive/v${rocksdb_version}.tar.gz && tar xzf v${rocksdb_version}.tar.gz && cd rocksdb-${rocksdb_version}/ && \
mkdir -p build_place && cd build_place && cmake -DCMAKE_BUILD_TYPE=Release $CMAKE_REQUIRED_PARAMS -DCMAKE_PREFIX_PATH=$INSTALL_PREFIX -DWITH_TESTS=OFF -DWITH_GFLAGS=OFF \
-DWITH_BENCHMARK_TOOLS=OFF -DWITH_TOOLS=OFF -DWITH_MD_LIBRARY=OFF -DWITH_RUNTIME_DEBUG=OFF -DROCKSDB_BUILD_SHARED=OFF -DWITH_SNAPPY=ON -DWITH_LZ4=ON -DWITH_ZLIB=ON \
Expand Down
8 changes: 4 additions & 4 deletions filter_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ import (
)

func TestFilterPolicy(t *testing.T) {
t.Run("Bloom", func(t *testing.T) {
t.Run("Bloom", func(*testing.T) {
flt := NewBloomFilter(1.2)
defer flt.Destroy()
})

t.Run("BloomFull", func(t *testing.T) {
t.Run("BloomFull", func(*testing.T) {
flt := NewBloomFilterFull(1.2)
defer flt.Destroy()
})

t.Run("Ribbon", func(t *testing.T) {
t.Run("Ribbon", func(*testing.T) {
flt := NewRibbonFilterPolicy(1.2)
defer flt.Destroy()
})

t.Run("RibbonHybrid", func(t *testing.T) {
t.Run("RibbonHybrid", func(*testing.T) {
flt := NewRibbonHybridFilterPolicy(1.2, 1)
defer flt.Destroy()
})
Expand Down

0 comments on commit ee0c669

Please sign in to comment.