Skip to content

Commit adae3ca

Browse files
committed
[Java] Fix JNI link error caused by the removal of options.db_stats_log_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
1 parent 90b8c07 commit adae3ca

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

java/org/rocksdb/Options.java

-34
Original file line numberDiff line numberDiff line change
@@ -305,40 +305,6 @@ public Options setUseFsync(boolean useFsync) {
305305
}
306306
private native void setUseFsync(long handle, boolean useFsync);
307307

308-
/**
309-
* The time interval in seconds between each two consecutive stats logs.
310-
* This number controls how often a new scribe log about
311-
* db deploy stats is written out.
312-
* -1 indicates no logging at all.
313-
*
314-
* @return the time interval in seconds between each two consecutive
315-
* stats logs.
316-
*/
317-
public int dbStatsLogInterval() {
318-
assert(isInitialized());
319-
return dbStatsLogInterval(nativeHandle_);
320-
}
321-
private native int dbStatsLogInterval(long handle);
322-
323-
/**
324-
* The time interval in seconds between each two consecutive stats logs.
325-
* This number controls how often a new scribe log about
326-
* db deploy stats is written out.
327-
* -1 indicates no logging at all.
328-
* Default value is 1800 (half an hour).
329-
*
330-
* @param dbStatsLogInterval the time interval in seconds between each
331-
* two consecutive stats logs.
332-
* @return the reference to the current option.
333-
*/
334-
public Options setDbStatsLogInterval(int dbStatsLogInterval) {
335-
assert(isInitialized());
336-
setDbStatsLogInterval(nativeHandle_, dbStatsLogInterval);
337-
return this;
338-
}
339-
private native void setDbStatsLogInterval(
340-
long handle, int dbStatsLogInterval);
341-
342308
/**
343309
* Returns the directory of info log.
344310
*

java/org/rocksdb/test/OptionsTest.java

-6
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ public static void main(String[] args) {
5252
assert(opt.useFsync() == boolValue);
5353
}
5454

55-
{ // DbStatsLogInterval test
56-
int intValue = rand.nextInt();
57-
opt.setDbStatsLogInterval(intValue);
58-
assert(opt.dbStatsLogInterval() == intValue);
59-
}
60-
6155
{ // DbLogDir test
6256
String str = "path/to/DbLogDir";
6357
opt.setDbLogDir(str);

0 commit comments

Comments
 (0)