From 36963dc2ca72611245563be944c7afd21480448e Mon Sep 17 00:00:00 2001 From: Xiaopeng Zhang <xiaopzhang@paypal.com> Date: Tue, 26 Jan 2021 19:11:18 -0800 Subject: [PATCH] fix write option typo in java samples (#7894) Summary: this is a trivial PR for rocksdb java samples, I think it is a typo about write options. to do sync write, WAL should not be disabled Pull Request resolved: https://github.com/facebook/rocksdb/pull/7894 Reviewed By: jay-zhuang Differential Revision: D26047128 Pulled By: mrambacher fbshipit-source-id: a06ce54cb61af0d3f2578a709c34a0b1ccecb0b2 --- java/samples/src/main/java/RocksDBSample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/samples/src/main/java/RocksDBSample.java b/java/samples/src/main/java/RocksDBSample.java index f61995ed9..8fb2f15cc 100644 --- a/java/samples/src/main/java/RocksDBSample.java +++ b/java/samples/src/main/java/RocksDBSample.java @@ -210,7 +210,7 @@ public class RocksDBSample { // repeat the test with WriteOptions try (final WriteOptions writeOpts = new WriteOptions()) { writeOpts.setSync(true); - writeOpts.setDisableWAL(true); + writeOpts.setDisableWAL(false); db.put(writeOpts, testKey, testValue); len = db.get(testKey, enoughArray); assert (len == testValue.length);