add conf item to disable rocksdb compaction
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
7d487d53d8
commit
f014231644
2 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,7 @@ pub(crate) fn db_options(config: &Config, env: &mut Env, row_cache: &Cache, col_
|
|||
set_compression_defaults(&mut opts, config);
|
||||
|
||||
// Misc
|
||||
opts.set_disable_auto_compactions(!config.rocksdb_compaction);
|
||||
opts.create_if_missing(true);
|
||||
|
||||
// Default: https://github.com/facebook/rocksdb/wiki/WAL-Recovery-Modes#ktoleratecorruptedtailrecords
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue