Skip to content

Commit

Permalink
[Java] Fixed some errors in the sample and benchmark code.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhchiang committed Apr 25, 2014
1 parent e537a84 commit a82c492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion java/RocksDBSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,5 @@ public static void main(String[] args) {
// be sure to dispose c++ pointers
options.dispose();
readOptions.dispose();
filter.dispose();
}
}
4 changes: 2 additions & 2 deletions java/org/rocksdb/benchmark/DbBenchmark.java
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ private void prepareOptions(Options options) {
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(
Expand Down Expand Up @@ -1275,7 +1275,7 @@ private enum Flag {
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) {
Expand Down

0 comments on commit a82c492

Please sign in to comment.