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

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1100959 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2011-05-09 11:08:14 +00:00
parent f494b5525b
commit d5813be360
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ public abstract class AbstractStoreCursor extends AbstractPendingMessageCursor i
}
protected void resetSize() {
this.size = getStoreSize();
if (isStarted()) {
this.size = getStoreSize();
}
this.storeHasMessages=this.size > 0;
}