mirror of https://github.com/apache/activemq.git
Rollback changes to incrementReferenceCount, but maintained the incrementPreloadSize
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359152 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a2601e64fe
commit
5444ef92e1
|
@ -238,6 +238,7 @@ abstract public class PrefetchSubscription extends AbstractSubscription {
|
|||
}
|
||||
|
||||
private void dispatch(final MessageReference node) throws IOException {
|
||||
node.incrementReferenceCount();
|
||||
|
||||
final Message message = node.getMessage();
|
||||
if( message == null ) {
|
||||
|
@ -250,7 +251,6 @@ abstract public class PrefetchSubscription extends AbstractSubscription {
|
|||
MessageDispatch md = createMessageDispatch(node, message);
|
||||
dispatched.addLast(node);
|
||||
|
||||
node.incrementReferenceCount();
|
||||
incrementPreloadSize(node.getMessage().getSize());
|
||||
|
||||
if( info.isDispatchAsync() ) {
|
||||
|
|
Loading…
Reference in New Issue