clear batch entry if no more messages in the container

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@491092 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-12-29 20:25:58 +00:00
parent 8bc7f8636c
commit 3d0191e29e
2 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,7 @@ public class KahaMessageStore implements MessageStore, UsageListener{
} }
} }
if (messageContainer.isEmpty()) { if (messageContainer.isEmpty()) {
batchEntry = null; resetBatching();
} }
} }

View File

@ -216,6 +216,9 @@ public class RapidMessageStore implements MessageStore, UsageListener {
} }
} }
} }
if (messageContainer.isEmpty()) {
resetBatching();
}
} }
public void replayRemoveMessage(ConnectionContext context, MessageAck ack) { public void replayRemoveMessage(ConnectionContext context, MessageAck ack) {