Bump rocksdb to version 5.17.2 and use data format version 4

This commit is contained in:
Martin Boehm 2019-01-03 18:05:06 +01:00
parent 2552a429e8
commit 44f07734ce
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ RUN apt-get update && \
apt-get clean
ENV GOLANG_VERSION=go1.10.linux-amd64
ENV ROCKSDB_VERSION=v5.15.10
ENV ROCKSDB_VERSION=v5.17.2
ENV GOPATH=/go
ENV PATH=$PATH:$GOPATH/bin
ENV CGO_CFLAGS="-I/opt/rocksdb/include"

View File

@ -56,7 +56,7 @@ func createAndSetDBOptions(bloomBits int, c *gorocksdb.Cache, maxOpenFiles int)
if bloomBits > 0 {
blockOpts.SetFilterPolicy(gorocksdb.NewBloomFilter(bloomBits))
}
C.rocksdb_block_based_options_set_format_version(cNativeBlockOpts, 3)
C.rocksdb_block_based_options_set_format_version(cNativeBlockOpts, 4)
opts := gorocksdb.NewDefaultOptions()
opts.SetBlockBasedTableFactory(blockOpts)