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()) {
|
if (databaseOptions.useDirectIO()) {
|
||||||
options
|
options
|
||||||
.setAllowMmapReads(databaseOptions.allowMemoryMapping())
|
.setAllowMmapReads(false)
|
||||||
.setAllowMmapWrites(databaseOptions.allowMemoryMapping())
|
.setAllowMmapWrites(false)
|
||||||
.setUseDirectIoForFlushAndCompaction(true)
|
.setUseDirectIoForFlushAndCompaction(true)
|
||||||
.setUseDirectReads(true)
|
.setUseDirectReads(true)
|
||||||
// Option to enable readahead in compaction
|
// Option to enable readahead in compaction
|
||||||
|
Loading…
Reference in New Issue
Block a user