Expose keep_log_file_num option

master
Roman Zeyde 6 years ago
parent d9bb9bf7d5
commit efdea4faab
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB
  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