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:
Adrian T. Co 2005-12-27 01:11:43 +00:00
parent a2601e64fe
commit 5444ef92e1
1 changed files with 1 additions and 1 deletions

View File

@ -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() ) {