revert unnecessary change

This commit is contained in:
Christopher L. Shannon (cshannon) 2024-01-23 10:19:04 -05:00
parent f73cf2aaab
commit a0b8a1fe55
1 changed files with 1 additions and 2 deletions

View File

@ -1545,9 +1545,8 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
if (previous == null) {
previous = sd.messageIdIndex.put(tx, command.getMessageId(), id);
if (previous == null) {
sd.orderIndex.put(tx, priority, id, new MessageKeys(command.getMessageId(), location));
// increment after putting into the order index first
incrementAndAddSizeToStoreStat(tx, command.getDestination(), location.getSize());
sd.orderIndex.put(tx, priority, id, new MessageKeys(command.getMessageId(), location));
if (sd.subscriptions != null && !sd.subscriptions.isEmpty(tx)) {
addAckLocationForNewMessage(tx, command.getDestination(), sd, id);
}