Fix direct I/O parameters

This commit is contained in:
Andrea Cavalli 2021-06-27 16:47:59 +02:00
parent c9e9cb8a01
commit cb8dbf2fa2

View File

@ -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