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
This commit is contained in:
parent
0d2172f128
commit
edbf0e2d90
@ -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…
Reference in New Issue
Block a user