Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
DB WAL size limit (#1935)
Browse files Browse the repository at this point in the history
* Limit WAL size

* Check pruning by db modification date (#1924)
  • Loading branch information
arkpar committed Sep 11, 2016
1 parent 954db13 commit 72c2350
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/src/kvdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ impl Database {
if let Some(rate_limit) = config.compaction.write_rate_limit {
try!(opts.set_parsed_options(&format!("rate_limiter_bytes_per_sec={}", rate_limit)));
}
try!(opts.set_parsed_options(&format!("max_total_wal_size={}", 64 * 1024 * 1024)));
opts.set_max_open_files(config.max_open_files);
opts.create_if_missing(true);
opts.set_use_fsync(false);
Expand Down

0 comments on commit 72c2350

Please sign in to comment.