lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r394218 - /lucene/java/trunk/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java
Date Fri, 14 Apr 2006 22:38:27 GMT
Author: vajda
Date: Fri Apr 14 15:38:22 2006
New Revision: 394218

URL: http://svn.apache.org/viewcvs?rev=394218&view=rev
Log:
applied fix for issue 536 to bdb code as well

Modified:
    lucene/java/trunk/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java

Modified: lucene/java/trunk/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java?rev=394218&r1=394217&r2=394218&view=diff
==============================================================================
--- lucene/java/trunk/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java (original)
+++ lucene/java/trunk/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java Fri Apr
14 15:38:22 2006
@@ -217,11 +217,13 @@
                 {
                     cursor.del(0);
 
+                  outer:
                     while (cursor.get(cursorKey, cursorData,
-                                      DbConstants.DB_NEXT | flags) != DbConstants.DB_NOTFOUND)
{
+                                      DbConstants.DB_NEXT | flags) != DbConstants.DB_NOTFOUND)
+                    {
                         for (int i = 0; i < bytes.length; i++)
                             if (bytes[i] != cursorBytes[i])
-                                return;
+                                break outer;
 
                         cursor.del(0);
                     }



Mime
View raw message