Env should also load the native library (#6167)

Summary:
Closes https://github.com/facebook/rocksdb/issues/6118
Pull Request resolved: https://github.com/facebook/rocksdb/pull/6167

Differential Revision: D19053577

Pulled By: pdillinger

fbshipit-source-id: 86aca9a5bec0947a641649b515da17b3cb12bdde
main
Adam Retter 5 years ago committed by Facebook Github Bot
parent 0d2172f128
commit edbf0e2d90
  1. 4
      java/src/main/java/org/rocksdb/Env.java

@ -13,6 +13,10 @@ import java.util.List;
*/ */
public abstract class Env extends RocksObject { public abstract class Env extends RocksObject {
static {
RocksDB.loadLibrary();
}
private static final Env DEFAULT_ENV = new RocksEnv(getDefaultEnvInternal()); private static final Env DEFAULT_ENV = new RocksEnv(getDefaultEnvInternal());
static { static {
/** /**

Loading…
Cancel
Save