mirror of https://github.com/apache/activemq.git
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:
parent
a8b0d39915
commit
d8440f8610
|
@ -272,7 +272,7 @@ public class SequenceSet extends LinkedNodeList<Sequence> {
|
||||||
}
|
}
|
||||||
Sequence sequence = getHead();
|
Sequence sequence = getHead();
|
||||||
while (sequence != null) {
|
while (sequence != null) {
|
||||||
if (sequence.first <= first ) {
|
if (sequence.first <= first && first <= sequence.last ) {
|
||||||
return last <= sequence.last ;
|
return last <= sequence.last ;
|
||||||
}
|
}
|
||||||
sequence = sequence.getNext();
|
sequence = sequence.getNext();
|
||||||
|
|
Loading…
Reference in New Issue