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()) { 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