add set_level0_compaction_trigger api

master
zhangjinpeng1987 8 years ago committed by Karl Hobley
parent c9e104a4e5
commit 5454956385
  1. 7
      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(

Loading…
Cancel
Save