You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2012/11/09 19:47:39 UTC
svn commit: r1407589 -
/activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
Author: chirino
Date: Fri Nov 9 18:47:38 2012
New Revision: 1407589
URL: http://svn.apache.org/viewvc?rev=1407589&view=rev
Log:
Default the directory setting on the LevelDB store to avoid test failure in AMQ2580Test.
Modified:
activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
Modified: activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala?rev=1407589&r1=1407588&r2=1407589&view=diff
==============================================================================
--- activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala (original)
+++ activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala Fri Nov 9 18:47:38 2012
@@ -38,7 +38,8 @@ import org.apache.activemq.util._
import org.apache.activemq.leveldb.util.{RetrySupport, FileSupport, Log}
object LevelDBStore extends Log {
-
+ val DEFAULT_DIRECTORY = new File("LevelDB");
+
val DONE = new CountDownFuture();
DONE.countDown
@@ -118,7 +119,7 @@ class LevelDBStore extends ServiceSuppor
final val db = new DBManager(this)
@BeanProperty
- var directory: File = null
+ var directory = DEFAULT_DIRECTORY
@BeanProperty
var logDirectory: File = null