enable atomic_flush for database columns
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
aefc4b4e69
commit
a3d87be22f
1 changed files with 2 additions and 1 deletions
|
@ -39,8 +39,9 @@ pub(crate) fn db_options(
|
||||||
}
|
}
|
||||||
|
|
||||||
// IO
|
// IO
|
||||||
|
opts.set_atomic_flush(true);
|
||||||
opts.set_manual_wal_flush(true);
|
opts.set_manual_wal_flush(true);
|
||||||
opts.set_enable_pipelined_write(true);
|
opts.set_enable_pipelined_write(false);
|
||||||
if config.rocksdb_direct_io {
|
if config.rocksdb_direct_io {
|
||||||
opts.set_use_direct_reads(true);
|
opts.set_use_direct_reads(true);
|
||||||
opts.set_use_direct_io_for_flush_and_compaction(true);
|
opts.set_use_direct_io_for_flush_and_compaction(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue