git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@905349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2010-02-01 18:09:32 +00:00
parent a3607423c4
commit 722258e196
1 changed files with 3 additions and 1 deletions

View File

@ -878,7 +878,9 @@ public class MessageDatabase implements BrokerServiceAware {
Long sequenceId = sd.messageIdIndex.remove(tx, command.getMessageId());
if (sequenceId != null) {
MessageKeys keys = sd.orderIndex.remove(tx, sequenceId);
sd.locationIndex.remove(tx, keys.location);
if (keys != null) {
sd.locationIndex.remove(tx, keys.location);
}
}
} else {
// In the topic case we need remove the message once it's been acked