Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankit Gupta committed Apr 8, 2014
1 parent 22d45de commit 1422044
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions java/org/rocksdb/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public boolean disableSeekCompaction() {

/*
* Maximum number of concurrent background jobs, submitted to
* the default LOW priority thread pool
* the default LOW priority thread pool.
* Default: 1
*
* @param maximum number of concurrent background jobs.
Expand All @@ -174,9 +174,9 @@ public void setMaxBackgroundCompactions(int maxBackgroundCompactions) {
}

/*
* Returns maximum number of background concurrent jobs
* Returns maximum number of background concurrent jobs.
*
* @return maximum number of background concurrent jobs
* @return maximum number of background concurrent jobs.
* @see setMaxBackgroundCompactions
*/
public int maxBackgroundCompactions() {
Expand Down Expand Up @@ -204,13 +204,16 @@ private boolean isInitialized() {
private native boolean createIfMissing(long handle);
private native void setWriteBufferSize(long handle, int writeBufferSize);
private native int writeBufferSize(long handle);
private native void setMaxWriteBufferNumber(long handle, int maxWriteBufferNumber);
private native void setMaxWriteBufferNumber(
long handle, int maxWriteBufferNumber);
private native int maxWriteBufferNumber(long handle);
private native void setBlockSize(long handle, int blockSize);
private native int blockSize(long handle);
private native void setDisableSeekCompaction(long handle, boolean disableSeekCompaction);
private native void setDisableSeekCompaction(
long handle, boolean disableSeekCompaction);
private native boolean disableSeekCompaction(long handle);
private native void setMaxBackgroundCompactions(long handle, int maxBackgroundCompactions);
private native void setMaxBackgroundCompactions(
long handle, int maxBackgroundCompactions);
private native int maxBackgroundCompactions(long handle);

long nativeHandle_;
Expand Down
4 changes: 2 additions & 2 deletions java/rocksjni/options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jint Java_org_rocksdb_Options_blockSize(
*/
void Java_org_rocksdb_Options_setDisableSeekCompaction(
JNIEnv* env, jobject jobj, jlong jhandle,
jboolean jdisable_seek_compaction) {
jboolean jdisable_seek_compaction) {
reinterpret_cast<rocksdb::Options*>(jhandle)->disable_seek_compaction =
jdisable_seek_compaction;
}
Expand All @@ -152,7 +152,7 @@ jboolean Java_org_rocksdb_Options_disableSeekCompaction(
*/
void Java_org_rocksdb_Options_setMaxBackgroundCompactions(
JNIEnv* env, jobject jobj, jlong jhandle,
jint jmax_background_compactions) {
jint jmax_background_compactions) {
reinterpret_cast<rocksdb::Options*>(jhandle)->max_background_compactions =
jmax_background_compactions;
}
Expand Down

0 comments on commit 1422044

Please sign in to comment.