add conf item to re-disable atomic flush
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
e123a5b660
commit
ecc9099127
3 changed files with 16 additions and 2 deletions
|
@ -29,9 +29,9 @@ pub(crate) fn db_options(config: &Config, env: &Env, row_cache: &Cache) -> Resul
|
|||
opts.set_max_file_opening_threads(0);
|
||||
|
||||
// IO
|
||||
opts.set_atomic_flush(true);
|
||||
opts.set_manual_wal_flush(true);
|
||||
opts.set_enable_pipelined_write(false);
|
||||
opts.set_atomic_flush(config.rocksdb_atomic_flush);
|
||||
opts.set_enable_pipelined_write(!config.rocksdb_atomic_flush);
|
||||
if config.rocksdb_direct_io {
|
||||
opts.set_use_direct_reads(true);
|
||||
opts.set_use_direct_io_for_flush_and_compaction(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue