activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r504007 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/data/DataManagerImpl.java
Date Tue, 06 Feb 2007 06:27:13 GMT
Author: rajdavies
Date: Mon Feb  5 22:27:11 2007
New Revision: 504007

URL: http://svn.apache.org/viewvc?view=rev&rev=504007
Log:
ensure writer isn't null in removeDataFile()

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/data/DataManagerImpl.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/data/DataManagerImpl.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/data/DataManagerImpl.java?view=diff&rev=504007&r1=504006&r2=504007
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/data/DataManagerImpl.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/data/DataManagerImpl.java
Mon Feb  5 22:27:11 2007
@@ -294,7 +294,9 @@
 
     private void removeDataFile(DataFile dataFile) throws IOException{
         fileMap.remove(dataFile.getNumber());
-        writer.force(dataFile);
+        if(writer!=null){
+            writer.force(dataFile);
+        }
         boolean result=dataFile.delete();
         log.debug("discarding data file "+dataFile+(result?"successful ":"failed"));
     }



Mime
View raw message