Always use direct-io for flush and compaction

This commit is contained in:
Andrea Cavalli 2023-11-24 01:52:43 +01:00
parent fe0256dbf9
commit 37890ee3cb

View File

@ -1091,9 +1091,7 @@ public class LLLocalKeyValueDatabase extends Backuppable implements LLKeyValueDa
.setAllowMmapWrites(allowMmapWrites);
}
if (useDirectIO || !allowMmapWrites) {
options.setUseDirectIoForFlushAndCompaction(true);
}
options.setUseDirectIoForFlushAndCompaction(true);
return new OptionsWithCache(options, blockCache);
} catch (IOException e) {