rocksdb/java
fyrz e61f38e5a0 [RocksJava] Fix native library loader
Summary:
Prior to this the native library loader instance didn`t
care about a state. So if library loading was called multiple
times, multiple copies of the shared object were put into
the tmp folder and loaded into the JVM.

This changed within this commit to the following behavior:

- library loading is now synchronized
- library is loaded within the first call
- if loading was successful the library loaded sets a flag
- every subsequent call checks for a boolean flag indicating if there was
  already a successful attempt

Test Plan:
- Execute example and watch tmp folder while the example is running

- After this patch only one shared object will be in the tmp folder

Usual tests:
- make rocksdbjava jtest
- mvn -f rocksjni.pom package

Reviewers: adamretter, ankgup87, yhchiang

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D32133
2015-01-24 16:55:28 +01:00
..
crossbuild Fixed cross platform build after introducing Java-7 dependencies 2014-10-23 21:10:49 +02:00
org/rocksdb [RocksJava] Fix native library loader 2015-01-24 16:55:28 +01:00
rocksjni [RocksJava] ReadOptions support in Iterators 2015-01-23 08:02:55 +01:00
HISTORY-JAVA.md Update HISTORY.md for RocksJava 2014-11-14 11:23:00 -08:00
jdb_bench.sh Cross platform fix for Java benchmark shell script. 2014-10-05 10:46:55 +02:00
Makefile [RocksJava] TTL-Support 2015-01-17 23:28:05 +01:00
RELEASE.md update release readme 2014-10-06 08:24:51 -07:00
RocksDBColumnFamilySample.java [RocksJava] ColumnFamilyDescriptor alignment with listColumnFamilies 2015-01-10 20:54:49 +01:00
RocksDBSample.java RocksJava - FindBugs issues 2014-12-02 09:58:17 +01:00
rocksjni.pom [RocksJava] Sigsegv fix for MergerOperatorByName 2014-11-25 22:26:02 +01:00