Skip to content

Commit

Permalink
IGNITE-24392 Use fsync in PersistentVaultService (#5168)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkalkirill authored Feb 4, 2025
1 parent 2f70a2b commit 220c5f7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ private static Options options() {
.setLevelCompactionDynamicLevelBytes(true)
.setBytesPerSync(1024 * 1024)
.setCompactionPriority(CompactionPriority.MinOverlappingRatio)
.setUseFsync(true)
.setTableFormatConfig(
new BlockBasedTableConfig()
.setBlockSize(16 * 1024)
Expand Down Expand Up @@ -166,7 +167,7 @@ public void close() {
public void putAll(Map<ByteArray, byte[]> vals) {
try (
var writeBatch = new WriteBatch();
var writeOpts = new WriteOptions()
var writeOpts = new WriteOptions().setSync(true)
) {
for (var entry : vals.entrySet()) {
if (entry.getValue() == null) {
Expand Down

0 comments on commit 220c5f7

Please sign in to comment.