From 845a332fd321346a07e630b7e735e056e1dcd582 Mon Sep 17 00:00:00 2001 From: Lucjan Suski Date: Mon, 29 Apr 2019 12:31:00 +0200 Subject: [PATCH] There is no enabled param on compression options --- src/db_options.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/db_options.rs b/src/db_options.rs index 6cf3949..c056e3c 100644 --- a/src/db_options.rs +++ b/src/db_options.rs @@ -286,11 +286,9 @@ impl Options { /// So users of this feature may see increased memory usage. /// /// Default: `0` - pub fn set_compression_options(&mut self, w_bits: c_int, level: c_int, strategy: c_int, max_dict_bytes: c_int - - enabled: bool) { + pub fn set_compression_options(&mut self, w_bits: c_int, level: c_int, strategy: c_int, max_dict_bytes: c_int) { unsafe { - ffi::rocksdb_options_set_compression_options(self.inner, w_bits, level, strategy, max_dict_bytes, enabled); + ffi::rocksdb_options_set_compression_options(self.inner, w_bits, level, strategy, max_dict_bytes); } }