activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1100959 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java
Date Mon, 09 May 2011 11:08:15 GMT
Author: gtully
Date: Mon May  9 11:08:14 2011
New Revision: 1100959

URL: http://svn.apache.org/viewvc?rev=1100959&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3305 - fix regression, only ask store for size while
we are active, such that we don't get errors on stop

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java?rev=1100959&r1=1100958&r2=1100959&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/AbstractStoreCursor.java
Mon May  9 11:08:14 2011
@@ -62,7 +62,9 @@ public abstract class AbstractStoreCurso
     }
 
     protected void resetSize() {
-        this.size = getStoreSize();
+        if (isStarted()) {
+            this.size = getStoreSize();
+        }
         this.storeHasMessages=this.size > 0;
     }
 



Mime
View raw message