Skip to content

Commit

Permalink
Addressing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen committed Sep 23, 2014
1 parent fd7d3fe commit 51eeaf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion java/org/rocksdb/NativeLibraryLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static void loadLibraryFromJar(String tmpDir)
if(tmpDir == null || tmpDir.equals(""))
temp = File.createTempFile(tempFilePrefix, tempFileSuffix);
else
temp = new File(tmpDir+"/"+sharedLibraryName);
temp = new File(tmpDir + "/" + sharedLibraryName);

temp.deleteOnExit();

Expand Down
3 changes: 3 additions & 0 deletions java/org/rocksdb/RocksDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 51eeaf6

Please sign in to comment.