Only keep a single debug log file, ref #1100
This commit is contained in:
parent
f3e7d7c725
commit
98f86d553a
@ -493,6 +493,7 @@ impl Database {
|
|||||||
}
|
}
|
||||||
opts.set_parsed_options(&format!("max_total_wal_size={}", 64 * 1024 * 1024))?;
|
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("verify_checksums_in_compaction=0")?;
|
||||||
|
opts.set_parsed_options("keep_log_file_num=1")?;
|
||||||
opts.set_max_open_files(config.max_open_files);
|
opts.set_max_open_files(config.max_open_files);
|
||||||
opts.create_if_missing(true);
|
opts.create_if_missing(true);
|
||||||
opts.set_use_fsync(false);
|
opts.set_use_fsync(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user