mirror of https://github.com/apache/activemq.git
parent
0b88dabb40
commit
5acd9303a5
|
@ -3010,8 +3010,7 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
|
|||
//grab the messages attached to this subscription
|
||||
SequenceSet messageSequences = sd.ackPositions.get(tx, subscriptionKey);
|
||||
|
||||
if (messageSequences != null) {
|
||||
if (!messageSequences.isEmpty()) {
|
||||
if (messageSequences != null && !messageSequences.isEmpty()) {
|
||||
final Sequence head = messageSequences.getHead();
|
||||
|
||||
//get an iterator over the order index starting at the first unacked message
|
||||
|
@ -3031,7 +3030,6 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return locationSize;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue