diff --git a/java/samples/src/main/java/RocksDBSample.java b/java/samples/src/main/java/RocksDBSample.java index d5a0710d4..402fd8f89 100644 --- a/java/samples/src/main/java/RocksDBSample.java +++ b/java/samples/src/main/java/RocksDBSample.java @@ -112,7 +112,7 @@ public class RocksDBSample { assert(options.tableFactoryName().equals("BlockBasedTable")); try { - db = RocksDB.open(options, db_path_not_found); + db = RocksDB.open(options, db_path); db.put("hello".getBytes(), "world".getBytes()); byte[] value = db.get("hello".getBytes()); assert("world".equals(new String(value)));