activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r956732 - /activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/SequenceSet.java
Date Mon, 21 Jun 2010 23:26:50 GMT
Author: chirino
Date: Mon Jun 21 23:26:49 2010
New Revision: 956732

URL: http://svn.apache.org/viewvc?rev=956732&view=rev
Log:
fixing contains method so that recovery is quicker

Modified:
    activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/SequenceSet.java

Modified: activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/SequenceSet.java
URL: http://svn.apache.org/viewvc/activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/SequenceSet.java?rev=956732&r1=956731&r2=956732&view=diff
==============================================================================
--- activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/SequenceSet.java (original)
+++ activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/SequenceSet.java Mon Jun 21
23:26:49 2010
@@ -272,7 +272,7 @@ public class SequenceSet extends LinkedN
         }
         Sequence sequence = getHead();
         while (sequence != null) {
-            if (sequence.first <= first ) {
+            if (sequence.first <= first && first <= sequence.last ) {
                 return last <= sequence.last ;
             }
             sequence = sequence.getNext();



Mime
View raw message