Better memory usage reference counting for the persistent message case.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@639388 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2008-03-20 17:49:45 +00:00
parent 198dd34a9e
commit 01ab56f7d0
2 changed files with 1 additions and 1 deletions

View File

@ -114,6 +114,7 @@ public abstract class AbstractStoreCursor extends AbstractPendingMessageCursor i
if (!this.batchList.isEmpty()) {
Iterator<Entry<MessageId, Message>> i = this.batchList.entrySet().iterator();
result = i.next().getValue();
result.decrementReferenceCount();
i.remove();
}
return result;

View File

@ -189,7 +189,6 @@ public class FilePendingMessageCursor extends AbstractPendingMessageCursor imple
}
}
systemUsage.getTempUsage().waitForSpace();
node.decrementReferenceCount();
getDiskList().add(node);
} catch (Exception e) {