Addressing review comments

main
Naveen 10 years ago
parent fd7d3fe604
commit 51eeaf65e2
  1. 2
      java/org/rocksdb/NativeLibraryLoader.java
  2. 3
      java/org/rocksdb/RocksDB.java

@ -18,7 +18,7 @@ public class NativeLibraryLoader {
if(tmpDir == null || tmpDir.equals(""))
temp = File.createTempFile(tempFilePrefix, tempFileSuffix);
else
temp = new File(tmpDir+"/"+sharedLibraryName);
temp = new File(tmpDir + "/" + sharedLibraryName);
temp.deleteOnExit();

@ -31,6 +31,9 @@ public class RocksDB extends RocksObject {
/**
* Loads the necessary library files.
* Calling this method twice will have no effect.
* By default the method extracts the shared library for loading at
* java.io.tmpdir, however, you can override this temporary location by
* setting the environment variable ROCKSDB_SHAREDLIB_DIR.
*/
public static synchronized void loadLibrary() {
String tmpDir = System.getenv("ROCKSDB_SHAREDLIB_DIR");

Loading…
Cancel
Save