Merge pull request #195 from romanz/master

Expose keep_log_file_num option
master
Jordan Terrell 6 years ago committed by GitHub
commit 018a3ff683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/db_options.rs

@ -1113,6 +1113,13 @@ impl Options {
ffi::rocksdb_options_set_skip_stats_update_on_db_open(self.inner, skip as c_uchar);
}
}
/// Specify the maximal number of info log files to be kept.
pub fn set_keep_log_file_num(&mut self, nfiles: usize) {
unsafe {
ffi::rocksdb_options_set_keep_log_file_num(self.inner, nfiles);
}
}
}
impl Default for Options {

Loading…
Cancel
Save