Minor fix in rocksdb jni library.

Summary: Fix a bug in RocksDBSample.java and minor code improvement in rocksjni.cc.

Test Plan:
make jni
make jtest

Reviewers: haobo, sdong

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D17325
This commit is contained in:
Yueh-Hsuan Chiang
2014-03-29 22:00:52 -07:00
parent 8a139a054c
commit 5ec38c3d3e
3 changed files with 29 additions and 19 deletions

View File

@@ -34,7 +34,9 @@ public class RocksDB implements Closeable {
}
@Override public void close() throws IOException {
close0();
if (nativeHandle != 0) {
close0();
}
}
/**