mirror of https://github.com/apache/activemq.git
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:
parent
f494b5525b
commit
d5813be360
|
@ -62,7 +62,9 @@ public abstract class AbstractStoreCursor extends AbstractPendingMessageCursor i
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void resetSize() {
|
protected void resetSize() {
|
||||||
this.size = getStoreSize();
|
if (isStarted()) {
|
||||||
|
this.size = getStoreSize();
|
||||||
|
}
|
||||||
this.storeHasMessages=this.size > 0;
|
this.storeHasMessages=this.size > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue