activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1162059 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/plist/PListStore.java
Date Fri, 26 Aug 2011 10:50:30 GMT
Author: gtully
Date: Fri Aug 26 10:50:29 2011
New Revision: 1162059

URL: http://svn.apache.org/viewvc?rev=1162059&view=rev
Log:
allow early return if stopping, avoids some logging on shutdown

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=1162059&r1=1162058&r2=1162059&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 Aug 26 10:50:29 2011
@@ -350,6 +350,9 @@ public class PListStore extends ServiceS
 
     public void run() {
         try {
+             if (isStopping()) {
+                return;
+             }
             final int lastJournalFileId = journal.getLastAppendLocation().getDataFileId();
             final Set<Integer> candidates = journal.getFileMap().keySet();
             LOG.trace("Full gc candidate set:" + candidates);



Mime
View raw message