Fix direct I/O parameters
This commit is contained in:
parent
c9e9cb8a01
commit
cb8dbf2fa2
@ -322,8 +322,8 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
|
||||
|
||||
if (databaseOptions.useDirectIO()) {
|
||||
options
|
||||
.setAllowMmapReads(databaseOptions.allowMemoryMapping())
|
||||
.setAllowMmapWrites(databaseOptions.allowMemoryMapping())
|
||||
.setAllowMmapReads(false)
|
||||
.setAllowMmapWrites(false)
|
||||
.setUseDirectIoForFlushAndCompaction(true)
|
||||
.setUseDirectReads(true)
|
||||
// Option to enable readahead in compaction
|
||||
|
Loading…
Reference in New Issue
Block a user