mirror of https://github.com/apache/activemq.git
Fixes AMQ-4599: Only package the pure java LevelDB driver by default
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1496514 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3fb8be2ba
commit
baf8c499b3
|
@ -77,6 +77,9 @@
|
||||||
<artifactId>leveldbjni</artifactId>
|
<artifactId>leveldbjni</artifactId>
|
||||||
<version>${leveldbjni-version}</version>
|
<version>${leveldbjni-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Lets not include the JNI libs for now so that we can harden the pure java driver more -->
|
||||||
|
<!--
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.fusesource.leveldbjni</groupId>
|
<groupId>org.fusesource.leveldbjni</groupId>
|
||||||
<artifactId>leveldbjni-osx</artifactId>
|
<artifactId>leveldbjni-osx</artifactId>
|
||||||
|
@ -102,6 +105,7 @@
|
||||||
<artifactId>leveldbjni-win64</artifactId>
|
<artifactId>leveldbjni-win64</artifactId>
|
||||||
<version>1.5</version>
|
<version>1.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
-->
|
||||||
|
|
||||||
<!-- For Replication -->
|
<!-- For Replication -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -559,7 +559,10 @@ class LevelDBClient(store: LevelDBStore) {
|
||||||
}.headOption.getOrElse(throw new Exception("Could not load any of the index factory classes: "+factoryNames))
|
}.headOption.getOrElse(throw new Exception("Could not load any of the index factory classes: "+factoryNames))
|
||||||
|
|
||||||
if( factory.getClass.getName == "org.iq80.leveldb.impl.Iq80DBFactory") {
|
if( factory.getClass.getName == "org.iq80.leveldb.impl.Iq80DBFactory") {
|
||||||
warn("Using the pure java LevelDB implementation which is still experimental. Production users should use the JNI based LevelDB implementation instead.")
|
info("Using the pure java LevelDB implementation.")
|
||||||
|
}
|
||||||
|
if( factory.getClass.getName == "org.fusesource.leveldbjni.JniDBFactory") {
|
||||||
|
info("Using the JNI LevelDB implementation.")
|
||||||
}
|
}
|
||||||
|
|
||||||
indexOptions = new Options();
|
indexOptions = new Options();
|
||||||
|
|
Loading…
Reference in New Issue