activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r396583 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/KahaStore.java
Date Mon, 24 Apr 2006 15:42:00 GMT
Author: chirino
Date: Mon Apr 24 08:41:59 2006
New Revision: 396583

URL: http://svn.apache.org/viewcvs?rev=396583&view=rev
Log:
Don't open data files again if the store has been closed.. on windows tests were failing since
the open data files could not be deleted.

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/KahaStore.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/KahaStore.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/KahaStore.java?rev=396583&r1=396582&r2=396583&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/KahaStore.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/KahaStore.java
Mon Apr 24 08:41:59 2006
@@ -183,6 +183,8 @@
     }
 
     protected synchronized void initialize() throws IOException{
+    	if( closed )
+    		throw new IOException("Store has been closed.");
         if(!initialized){
             initialized=true;
             directory=new File(name);



Mime
View raw message