summaryrefslogtreecommitdiff
path: root/src/database/abstraction/rocksdb.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/abstraction/rocksdb.rs')
-rw-r--r--src/database/abstraction/rocksdb.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/database/abstraction/rocksdb.rs b/src/database/abstraction/rocksdb.rs
index b40c439..5835804 100644
--- a/src/database/abstraction/rocksdb.rs
+++ b/src/database/abstraction/rocksdb.rs
@@ -59,6 +59,9 @@ fn db_options(max_open_files: i32, rocksdb_cache: &rocksdb::Cache) -> rocksdb::O
let prefix_extractor = rocksdb::SliceTransform::create_fixed_prefix(1);
db_opts.set_prefix_extractor(prefix_extractor);
+ db_opts.set_max_log_file_size(1024*1024*256);
+ db_opts.set_keep_log_file_num(3);
+
db_opts
}