From cb8dbf2fa2520f7d38dfebb02a4122650cf275c5 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sun, 27 Jun 2021 16:47:59 +0200 Subject: [PATCH] Fix direct I/O parameters --- .../dbengine/database/disk/LLLocalKeyValueDatabase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/it/cavallium/dbengine/database/disk/LLLocalKeyValueDatabase.java b/src/main/java/it/cavallium/dbengine/database/disk/LLLocalKeyValueDatabase.java index 02262c8..cdd6f8d 100644 --- a/src/main/java/it/cavallium/dbengine/database/disk/LLLocalKeyValueDatabase.java +++ b/src/main/java/it/cavallium/dbengine/database/disk/LLLocalKeyValueDatabase.java @@ -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