activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1171487 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/plist/PListStore.java
Date Fri, 16 Sep 2011 10:13:42 GMT
Author: gtully
Date: Fri Sep 16 10:13:41 2011
New Revision: 1171487

URL: http://svn.apache.org/viewvc?rev=1171487&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3490 - defer setting init done flag till complete,
ensure a failed init attempt is retried

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/plist/PListStore.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/plist/PListStore.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/plist/PListStore.java?rev=1171487&r1=1171486&r2=1171487&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/plist/PListStore.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/plist/PListStore.java
Fri Sep 16 10:13:41 2011
@@ -266,7 +266,6 @@ public class PListStore extends ServiceS
     protected synchronized void intialize() throws Exception {
         if (isStarted()) {
             if (this.initialized == false) {
-                this.initialized = true;
                 if (this.directory == null) {
                     this.directory = new File(IOHelper.getDefaultDataDirectory() + File.pathSeparator
+ "delayedDB");
                 }
@@ -312,6 +311,7 @@ public class PListStore extends ServiceS
                     }
                     scheduler.executePeriodically(this, cleanupInterval);
                 }
+                this.initialized = true;
                 LOG.info(this + " initialized");
             }
         }



Mime
View raw message