activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1101109 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
Date Mon, 09 May 2011 16:55:51 GMT
Author: gtully
Date: Mon May  9 16:55:51 2011
New Revision: 1101109

URL: http://svn.apache.org/viewvc?rev=1101109&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-2063 - JDBC persistence adapter improvements. make
cleanup conditional on cleanupInterval > 0. Variants of the other improvements are already
present on trunk

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java?rev=1101109&r1=1101108&r2=1101109&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java
Mon May  9 16:55:51 2011
@@ -298,15 +298,13 @@ public class JDBCPersistenceAdapter exte
             }
         }
 
-        cleanup();
-
         // Cleanup the db periodically.
         if (cleanupPeriod > 0) {
             cleanupTicket = getScheduledThreadPoolExecutor().scheduleWithFixedDelay(new Runnable()
{
                 public void run() {
                     cleanup();
                 }
-            }, cleanupPeriod, cleanupPeriod, TimeUnit.MILLISECONDS);
+            }, 0, cleanupPeriod, TimeUnit.MILLISECONDS);
         }
         
         createMessageAudit();



Mime
View raw message