Skip to content

Commit

Permalink
[Java] Fix JNI link error caused by the removal of options.db_stats_l…
Browse files Browse the repository at this point in the history
…og_interval

Summary: Fix JNI link error caused by the removal of options.db_stats_log_interval in https://reviews.facebook.net/D21915.

Test Plan:
make rocksdbjava
make jtest

Reviewers: ljin, ankgup87

Reviewed By: ankgup87

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D23505
  • Loading branch information
yhchiang committed Sep 19, 2014
1 parent 90b8c07 commit adae3ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
34 changes: 0 additions & 34 deletions java/org/rocksdb/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,40 +305,6 @@ public Options setUseFsync(boolean useFsync) {
}
private native void setUseFsync(long handle, boolean useFsync);

/**
* The time interval in seconds between each two consecutive stats logs.
* This number controls how often a new scribe log about
* db deploy stats is written out.
* -1 indicates no logging at all.
*
* @return the time interval in seconds between each two consecutive
* stats logs.
*/
public int dbStatsLogInterval() {
assert(isInitialized());
return dbStatsLogInterval(nativeHandle_);
}
private native int dbStatsLogInterval(long handle);

/**
* The time interval in seconds between each two consecutive stats logs.
* This number controls how often a new scribe log about
* db deploy stats is written out.
* -1 indicates no logging at all.
* Default value is 1800 (half an hour).
*
* @param dbStatsLogInterval the time interval in seconds between each
* two consecutive stats logs.
* @return the reference to the current option.
*/
public Options setDbStatsLogInterval(int dbStatsLogInterval) {
assert(isInitialized());
setDbStatsLogInterval(nativeHandle_, dbStatsLogInterval);
return this;
}
private native void setDbStatsLogInterval(
long handle, int dbStatsLogInterval);

/**
* Returns the directory of info log.
*
Expand Down
6 changes: 0 additions & 6 deletions java/org/rocksdb/test/OptionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ public static void main(String[] args) {
assert(opt.useFsync() == boolValue);
}

{ // DbStatsLogInterval test
int intValue = rand.nextInt();
opt.setDbStatsLogInterval(intValue);
assert(opt.dbStatsLogInterval() == intValue);
}

{ // DbLogDir test
String str = "path/to/DbLogDir";
opt.setDbLogDir(str);
Expand Down

0 comments on commit adae3ca

Please sign in to comment.