fixing contains method so that recovery is quicker

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@956732 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2010-06-21 23:26:49 +00:00
parent a8b0d39915
commit d8440f8610
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ public class SequenceSet extends LinkedNodeList<Sequence> {
}
Sequence sequence = getHead();
while (sequence != null) {
if (sequence.first <= first ) {
if (sequence.first <= first && first <= sequence.last ) {
return last <= sequence.last ;
}
sequence = sequence.getNext();