mirror of
https://github.com/apache/activemq.git
synced 2025-02-06 01:59:15 +00:00
clear batch entry if no more messages in the container
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@491184 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fe3f492321
commit
7351c4bd0d
@ -77,7 +77,7 @@ public class MemoryMessageStore implements MessageStore{
|
||||
public void removeMessage(MessageId msgId) throws IOException{
|
||||
synchronized(messageTable){
|
||||
messageTable.remove(msgId);
|
||||
if(lastBatchId!=null && lastBatchId.equals(msgId)){
|
||||
if((lastBatchId!=null && lastBatchId.equals(msgId)) || messageTable.isEmpty()){
|
||||
lastBatchId=null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user