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(