mirror of https://github.com/apache/activemq.git
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:
parent
198dd34a9e
commit
01ab56f7d0
|
@ -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;
|
||||
|
|
|
@ -189,7 +189,6 @@ public class FilePendingMessageCursor extends AbstractPendingMessageCursor imple
|
|||
}
|
||||
}
|
||||
systemUsage.getTempUsage().waitForSpace();
|
||||
node.decrementReferenceCount();
|
||||
getDiskList().add(node);
|
||||
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue