Skip to content

Commit 4335417

Browse files
committed
closes #124
1 parent d48846a commit 4335417

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "lsm-tree"
33
description = "A K.I.S.S. implementation of log-structured merge trees (LSM-trees/LSMTs)"
44
license = "MIT OR Apache-2.0"
5-
version = "2.8.0"
5+
version = "2.9.0"
66
edition = "2021"
77
rust-version = "1.75.0"
88
readme = "README.md"
@@ -37,7 +37,7 @@ quick_cache = { version = "0.6.5", default-features = false, features = [] }
3737
rustc-hash = "2.0.0"
3838
self_cell = "1.0.4"
3939
tempfile = "3.12.0"
40-
value-log = { version = "~1.8", default-features = false, features = [] }
40+
value-log = { version = "~1.9", default-features = false, features = [] }
4141
varint-rs = "2.2.0"
4242
xxhash-rust = { version = "0.8.12", features = ["xxh3"] }
4343

src/blob_tree/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ impl BlobTree {
8484
let vlog_cfg =
8585
value_log::Config::<MyBlobCache, MyCompressor>::new(MyBlobCache(config.cache.clone()))
8686
.segment_size_bytes(config.blob_file_target_size)
87-
.compression(MyCompressor(config.blob_compression));
87+
.compression(match config.blob_compression {
88+
crate::CompressionType::None => None,
89+
90+
#[cfg(any(feature = "lz4", feature = "miniz"))]
91+
c => Some(MyCompressor(c)),
92+
});
8893

8994
let index: IndexTree = config.open()?.into();
9095

0 commit comments

Comments
 (0)