From 5454956385fd118b664dc6d840fc656194af60a2 Mon Sep 17 00:00:00 2001 From: zhangjinpeng1987 Date: Tue, 2 Aug 2016 18:34:48 +0800 Subject: [PATCH] add set_level0_compaction_trigger api --- src/rocksdb_options.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rocksdb_options.rs b/src/rocksdb_options.rs index 29a4931..1fea826 100644 --- a/src/rocksdb_options.rs +++ b/src/rocksdb_options.rs @@ -284,6 +284,13 @@ impl Options { } } + pub fn set_level_zero_compaction_trigger(&mut self, n: c_int) { + unsafe { + rocksdb_ffi::rocksdb_options_set_level0_file_num_compaction_trigger( + self.inner, n); + } + } + pub fn set_level_zero_slowdown_writes_trigger(&mut self, n: c_int) { unsafe { rocksdb_ffi::rocksdb_options_set_level0_slowdown_writes_trigger(