From efdea4faab1254d7be5343b0d79681687d6b3361 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 23 Jul 2018 09:50:47 +0300 Subject: [PATCH] Expose keep_log_file_num option --- src/db_options.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/db_options.rs b/src/db_options.rs index cbe6c62..e1ef2fd 100644 --- a/src/db_options.rs +++ b/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 {