Skip to content

Commit 835fe34

Browse files
authored
Adapt RocksDB 9.8.4 (#170)
1 parent 8d817c6 commit 835fe34

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ cd $BUILD_PATH && wget https://github.com/facebook/zstd/archive/v${zstd_version}
3737

3838
# Note: if you don't have a good reason, please do not set -DPORTABLE=ON
3939
# This one is set here on purpose of compatibility with github action runtime processor
40-
rocksdb_version="9.7.3"
40+
rocksdb_version="9.8.4"
4141
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}/ && \
4242
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 \
4343
-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 -DWITH_LIBURING=OFF \

write_batch.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ func (wb *WriteBatch) Clear() {
202202
// Destroy deallocates the WriteBatch object.
203203
func (wb *WriteBatch) Destroy() {
204204
if wb.c != nil {
205+
wb.Clear()
206+
205207
C.rocksdb_writebatch_destroy(wb.c)
206208
wb.c = nil
207209
}

0 commit comments

Comments
 (0)