You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ra...@apache.org on 2007/10/28 11:54:36 UTC

svn commit: r589330 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/amq/AMQPersistenceAdapter.java

Author: rajdavies
Date: Sun Oct 28 03:54:35 2007
New Revision: 589330

URL: http://svn.apache.org/viewvc?rev=589330&view=rev
Log:
tidy up comments

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/amq/AMQPersistenceAdapter.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/amq/AMQPersistenceAdapter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/amq/AMQPersistenceAdapter.java?rev=589330&r1=589329&r2=589330&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/amq/AMQPersistenceAdapter.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/amq/AMQPersistenceAdapter.java Sun Oct 28 03:54:35 2007
@@ -350,15 +350,11 @@
 
     /**
      * Cleans up the data files
-     * 
-     * @return
      * @throws IOException
      */
     public void cleanup() {
         try {
-            // Capture the lastDataFile so that we don't delete any data files
-            // after this one.
-            Set<Integer>inProgress = new CopyOnWriteArraySet<Integer>();
+            Set<Integer>inProgress = new HashSet<Integer>();
             for (Set<Integer> set: dataFilesInProgress.values()) {
                 inProgress.addAll(set);
             }