From cbf98b6b23e998d1ba144f2783865d37f958972c Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Fri, 28 Oct 2016 12:20:16 +0100 Subject: [PATCH] Remove Options.set_filter_deletes Fixes #79 Deprecated (and removed) as of RocksDB 4.10 https://github.com/facebook/rocksdb/commit/7b79238b655ef6c7ef05c8052c3ded9981c4b54e --- src/ffi.rs | 1 - src/rocksdb_options.rs | 6 ------ 2 files changed, 7 deletions(-) diff --git a/src/ffi.rs b/src/ffi.rs index a9f7e4e..0b26da6 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -201,7 +201,6 @@ extern "C" { options: DBOptions, max_bg_compactions: c_int); pub fn rocksdb_options_set_max_background_flushes(options: DBOptions, max_bg_flushes: c_int); - pub fn rocksdb_options_set_filter_deletes(options: DBOptions, v: bool); pub fn rocksdb_options_set_disable_auto_compactions(options: DBOptions, v: c_int); pub fn rocksdb_options_set_report_bg_io_stats(options: DBOptions, v: c_int); diff --git a/src/rocksdb_options.rs b/src/rocksdb_options.rs index 1120a7b..1292a97 100644 --- a/src/rocksdb_options.rs +++ b/src/rocksdb_options.rs @@ -534,12 +534,6 @@ impl Options { } } - pub fn set_filter_deletes(&mut self, filter: bool) { - unsafe { - rocksdb_ffi::rocksdb_options_set_filter_deletes(self.inner, filter); - } - } - /// Disables automatic compactions. Manual compactions can still /// be issued on this column family ///