From 98f86d553a407adc3791bf897f512047678c9f4b Mon Sep 17 00:00:00 2001 From: 5chdn <5chdn@users.noreply.github.com> Date: Mon, 21 Aug 2017 15:33:31 +0200 Subject: [PATCH] Only keep a single debug log file, ref #1100 --- util/src/kvdb.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/util/src/kvdb.rs b/util/src/kvdb.rs index e6568d68c..44321c531 100644 --- a/util/src/kvdb.rs +++ b/util/src/kvdb.rs @@ -493,6 +493,7 @@ impl Database { } opts.set_parsed_options(&format!("max_total_wal_size={}", 64 * 1024 * 1024))?; opts.set_parsed_options("verify_checksums_in_compaction=0")?; + opts.set_parsed_options("keep_log_file_num=1")?; opts.set_max_open_files(config.max_open_files); opts.create_if_missing(true); opts.set_use_fsync(false);