diff --git a/java/src/main/java/org/rocksdb/FlushOptions.java b/java/src/main/java/org/rocksdb/FlushOptions.java index e481c7664..927c8dccc 100644 --- a/java/src/main/java/org/rocksdb/FlushOptions.java +++ b/java/src/main/java/org/rocksdb/FlushOptions.java @@ -24,7 +24,7 @@ public class FlushOptions extends RocksObject { */ public FlushOptions setWaitForFlush(boolean waitForFlush) { assert(isInitialized()); - waitForFlush(nativeHandle_); + setWaitForFlush(nativeHandle_, waitForFlush); return this; }