Skip to content

Commit

Permalink
Adapt RocksDB 9.8.4 (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
linxGnu authored Dec 23, 2024
1 parent 8d817c6 commit 835fe34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cd $BUILD_PATH && wget https://github.com/facebook/zstd/archive/v${zstd_version}

# Note: if you don't have a good reason, please do not set -DPORTABLE=ON
# This one is set here on purpose of compatibility with github action runtime processor
rocksdb_version="9.7.3"
rocksdb_version="9.8.4"
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 -DWITH_LIBURING=OFF \
Expand Down
2 changes: 2 additions & 0 deletions write_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ func (wb *WriteBatch) Clear() {
// Destroy deallocates the WriteBatch object.
func (wb *WriteBatch) Destroy() {
if wb.c != nil {
wb.Clear()

C.rocksdb_writebatch_destroy(wb.c)
wb.c = nil
}
Expand Down

0 comments on commit 835fe34

Please sign in to comment.