Skip to content

Commit e44caab

Browse files
committed
adjust for vlog changes
1 parent 71a1ea7 commit e44caab

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ quick_cache = { version = "0.6.13", 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
@@ -85,7 +85,12 @@ impl BlobTree {
8585
let vlog_cfg =
8686
value_log::Config::<MyBlobCache, MyCompressor>::new(MyBlobCache(config.cache.clone()))
8787
.segment_size_bytes(config.blob_file_target_size)
88-
.compression(MyCompressor(config.blob_compression));
88+
.compression(match config.blob_compression {
89+
crate::CompressionType::None => None,
90+
91+
#[cfg(any(feature = "lz4", feature = "miniz"))]
92+
c => Some(MyCompressor(c)),
93+
});
8994

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

0 commit comments

Comments
 (0)