[Java] Fixed some errors in the sample and benchmark code.

main
Yueh-Hsuan Chiang 11 years ago
parent e537a840c2
commit a82c492a95
  1. 1
      java/RocksDBSample.java
  2. 4
      java/org/rocksdb/benchmark/DbBenchmark.java

@ -226,6 +226,5 @@ public class RocksDBSample {
// be sure to dispose c++ pointers
options.dispose();
readOptions.dispose();
filter.dispose();
}
}

@ -497,7 +497,7 @@ public class DbBenchmark {
options.setCacheSize(
(Long)flags_.get(Flag.cache_size));
options.setBlockSize(
(Integer)flags_.get(Flag.block_size));
(Long)flags_.get(Flag.block_size));
options.setMaxOpenFiles(
(Integer)flags_.get(Flag.open_files));
options.setCreateIfMissing(
@ -1275,7 +1275,7 @@ public class DbBenchmark {
return Boolean.parseBoolean(value);
}
},
delete_obsolete_files_period_micros(0,"Option to delete\n" +
delete_obsolete_files_period_micros(0L,"Option to delete\n" +
"\tobsolete files periodically. 0 means that obsolete files are\n" +
"\tdeleted after every compaction run.") {
@Override public Object parseValue(String value) {

Loading…
Cancel
Save